Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const response = { statusCode: 200, headers: { "Access-Control-Allow-Origin" : "*", // Required for CORS support to work "Access-Control-Allow-Credentials" : true // Required for cookies, authorization headers with HTTPS }, body: JSON.stringify({ "message": "Hello World!" }) };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement