Skip to content

Instantly share code, notes, and snippets.

@pbzona
Created January 7, 2019 16:12
Show Gist options
  • Save pbzona/12e73cd089c98f77d80bd9bfb3731460 to your computer and use it in GitHub Desktop.
Save pbzona/12e73cd089c98f77d80bd9bfb3731460 to your computer and use it in GitHub Desktop.
fixing CORS in the browser
var response = {
statusCode: 200,
headers: {
"Access-Control-Allow-Origin": "your-domain.com"
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment