Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php header accept post request from same domain

<?php
// Cross-Origin Resource Sharing Header
header('Access-Control-Allow-Origin: http://base.com');
header('Access-Control-Allow-Methods: GET, POST, PUT, DELETE, OPTIONS');
header('Access-Control-Allow-Headers: X-Requested-With, Content-Type, Accept');
?>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #header #accept #post #request #domain
ADD COMMENT
Topic
Name
8+3 =