Skip to content

Instantly share code, notes, and snippets.

@IftekherSunny
Created August 5, 2016 06:14
Show Gist options
  • Save IftekherSunny/75340a51cdd6c79cbfe9019bfe8b420a to your computer and use it in GitHub Desktop.
Save IftekherSunny/75340a51cdd6c79cbfe9019bfe8b420a to your computer and use it in GitHub Desktop.
/******************************************************************************************
*
* Headers for cors.
*
*****************************************************************************************/
header('Access-Control-Allow-Origin: *');
header('Access-Control-Allow-Methods: POST, GET, OPTIONS, PUT, DELETE');
header('Access-Control-Allow-Headers: Content-Type, X-Auth-Token, Origin, Authorization');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment