Search
 
SCRIPT & CODE EXAMPLE
 

PHP

cors header ‘access-control-allow-origin’ missing IN PARTICULAR CAKEPHP API

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);
}
Comment

PREVIOUS NEXT
Code Example
Php :: encapsulation in php 
Php :: save big data with laravel 
Php :: debugbar:clear in laravel 
Php :: true not true acf 
Php :: Fetch pivot data laravel 
Php :: google recaptcha varification in php codeigniter 
Php :: laravel update method 
Php :: toggle switch php 
Php :: curlopt_postfields php example 
Php :: laravel hiding attributes JSON 
Php :: laravel route regex except 
Php :: confirm popup laravel 
Php :: php 8 loadmodule 
Php :: php two array difference merge recursive 
Php :: php base58 decode 
Php :: laravel 6 use username instead of id 
Php :: php readlink 
Php :: how to update a table based on three columns laravel 
Php :: php is closure 
Php :: laravel eloquent join two models 
Php :: array filter php get first object 
Php :: cpanel composer update kill 
Php :: get from link php 
Php :: In PackageManifest.php line 122: Undefined index: name 
Php :: global variable in laravel 
Php :: laravel 8 logout 419 page expired 
Php :: how to add drop a table in phpmyadmin 
Php :: php variables 
Php :: php array_push 
Php :: readable var dump php 
ADD CONTENT
Topic
Content
Source link
Name
3+1 =