AWS Lambda how do I properly allow CORs?
Clash Royale CLAN TAG #URR8PPP AWS Lambda how do I properly allow CORs? I know this question gets asked a lot and I have looked through other questions/answers but I still can't get it to work. I have read and followed: https://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-cors.html This is my lambda function: let http = require('https') exports.handler = (event, context, callback) => { const STORE_HASH = '1234' const PATH = `/stores/${STORE_HASH}/v3/catalog/products?limit=100` const AUTH_TOKEN = '1234' const AUTH_CLIENT = '1324' let options = { "method": "GET", "hostname": "api.bigcommerce.com", "port": null, "path": PATH, "headers": { "x-auth-client": AUTH_CLIENT, "x-auth-token": AUTH_TOKEN, "content-type": "application/json", ...