Skip to content

Instantly share code, notes, and snippets.

Created October 30, 2014 11:34
Show Gist options
  • Save anonymous/ea89706a2b00217151e3 to your computer and use it in GitHub Desktop.
Save anonymous/ea89706a2b00217151e3 to your computer and use it in GitHub Desktop.
App::before(function($request)
{
header('Access-Control-Allow-Origin: *');
header('Access-Control-Allow-Methods: GET, POST, OPTIONS');
header('Access-Control-Allow-Headers: Origin, Content-Type, Accept, Authorization, X-Request-With');
header('Access-Control-Allow-Credentials: true');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment