Created
August 13, 2012 14:24
-
-
Save mikeymckay/3341206 to your computer and use it in GitHub Desktop.
PHP file to allow for cross site posts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
header('Access-Control-Allow-Origin: *'); | |
header('Access-Control-Allow-Methods: POST, GET, OPTIONS'); | |
header('Access-Control-Max-Age: 1000'); | |
header('Access-Control-Allow-Headers: Content-Type'); | |
var_dump($_POST) | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment