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

enable cors cakephp

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

Contents


More Related Answers

  • php cors disable
  • composer require ozee 31/cakephp-cors:^1
  • cors header ‘access-control-allow-origin’ missing IN PARTICULAR CAKEPHP API
  • cors phalcon php
  • php cors allow methods
  • Enable CORS in cpanel
  • cors phalcon php

  • enable cors cakephp

    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

    Closely Related Answers



    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


    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.