Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

CORS for get request cakephp

Zidane (Vi Ly - VietNam) answered on October 20, 2021 Popularity 3/10 Helpfulness 3/10

Contents


More Related Answers

  • htaccess cakephp
  • cakephp get present name
  • get domain from url cakephp
  • extension ctp cakephp
  • cakephp database config
  • setup cakephp
  • composer require ozee 31/cakephp-cors:^1
  • cors header ‘access-control-allow-origin’ missing IN PARTICULAR CAKEPHP API
  • cakephp login session
  • cakephp
  • cakephp 3 get app url
  • cakephp

  • CORS for get request cakephp

    1

    // cakephp 4


    header('Access-Control-Allow-Origin: *');

    header('Access-Control-Allow-Methods: POST, GET, PUT, PATCH, DELETE, OPTIONS');

    header('Access-Control-Allow-Headers: *');

    if ($_SERVER['REQUEST_METHOD'] == 'OPTIONS') {

    exit(0);

    Popularity 3/10 Helpfulness 3/10 Language php
    Source: Grepper
    Link to this answer
    Share Copy Link
    Contributed on Mar 23 2023
    Zidane (Vi Ly - VietNam)
    0 Answers  Avg Quality 2/10

    Closely Related Answers



    2
    Popularity 6/10 Helpfulness 1/10 Language php
    Source: Grepper
    Tags: cakephp cors php
    Link to this answer
    Share Copy Link
    Contributed on Oct 20 2021
    Zidane (Vi Ly - VietNam)
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.