Skip to content

Instantly share code, notes, and snippets.

@mikeymckay
Created August 13, 2012 14:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikeymckay/3341206 to your computer and use it in GitHub Desktop.
Save mikeymckay/3341206 to your computer and use it in GitHub Desktop.
PHP file to allow for cross site posts
<?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