Skip to content

Instantly share code, notes, and snippets.

@mohitt
Created October 5, 2019 04:45
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 mohitt/7326415f5eded276c3a510e068c03732 to your computer and use it in GitHub Desktop.
Save mohitt/7326415f5eded276c3a510e068c03732 to your computer and use it in GitHub Desktop.
Headers for CORS
,
headers: {
"Access-Control-Allow-Origin": "*",
"Access-Control-Allow-Methods":
"GET, POST, PUT, DELETE, PATCH, OPTIONS",
"Access-Control-Allow-Headers":
"X-Requested-With, content-type, Authorization"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment