Skip to content

Instantly share code, notes, and snippets.

@amitaibu
Created July 13, 2014 21:16
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 amitaibu/596b66b4c19af58235f2 to your computer and use it in GitHub Desktop.
Save amitaibu/596b66b4c19af58235f2 to your computer and use it in GitHub Desktop.
<?php
header('Access-Control-Allow-Origin: *');
header("Access-Control-Allow-Credentials: true");
header('Access-Control-Allow-Headers: Authorization, X-Restful-Minor-Version, X-Csrf-Token, X-Access-Token, accept, content-type');
header('Access-Control-Allow-Methods: GET, POST, OPTIONS, PATCH, PUT');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment