Skip to content

Instantly share code, notes, and snippets.

@kurtisdunn
Last active July 20, 2023 22:58
Show Gist options
  • Save kurtisdunn/7f09b80844881a8eb690ffd58935dcfc to your computer and use it in GitHub Desktop.
Save kurtisdunn/7f09b80844881a8eb690ffd58935dcfc to your computer and use it in GitHub Desktop.
AWS Headers
const headers = {
"Access-Control-Allow-Origin": "<URL>",
"Content-Type": "application/json",
"Strict-Transport-Security": "max-age=31536000",
"Access-Control-Allow-Origin": "<URL>",
"x-frame-options": "DENY"
}
return {
statusCode: 200,
headers: headers,
body: JSON.stringify(repsonse.filter((e) => e !== undefined))
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment