Skip to content

Instantly share code, notes, and snippets.

@amitkhare
Created December 9, 2017 17:41
Show Gist options
  • Save amitkhare/936b04bacdbfc7965b2ecba2497dfba5 to your computer and use it in GitHub Desktop.
Save amitkhare/936b04bacdbfc7965b2ecba2497dfba5 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-Methods: GET, PUT, POST, DELETE, OPTIONS');
header('Access-Control-Max-Age: 1000');
header('Access-Control-Allow-Headers: Origin, Content-Type, X-Auth-Token , Authorization');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment