Last active
July 20, 2023 22:58
-
-
Save kurtisdunn/7f09b80844881a8eb690ffd58935dcfc to your computer and use it in GitHub Desktop.
AWS Headers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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