Skip to content

Instantly share code, notes, and snippets.

@Soulwest
Created February 9, 2018 05:48
Show Gist options
  • Save Soulwest/47ca3172cda6402b06a0132e86fd2bfd to your computer and use it in GitHub Desktop.
Save Soulwest/47ca3172cda6402b06a0132e86fd2bfd to your computer and use it in GitHub Desktop.
Kohana ajax debug
header('Access-Control-Allow-Origin: '.Request::initial()->headers('Origin'));
header('Access-Control-Allow-Credentials: true');
header('Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment