Skip to content

Commit

Permalink
fix options response
Browse files Browse the repository at this point in the history
  • Loading branch information
davidgamez committed Feb 22, 2024
1 parent 7cf78f4 commit 6b45044
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/feed.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ getCorsResponse = (event) => {
const headers = {
"Access-Control-Allow-Origin": "*", // Allow all domains
"Access-Control-Allow-Methods": "GET, POST, OPTIONS",
"Access-Control-Allow-Headers": "Content-Type, Authorization"
"Access-Control-Allow-Headers": "Origin, X-Requested-With, Content-Type, Accept, Authorization"
};

// Handle OPTIONS method for preflight requests
Expand Down

0 comments on commit 6b45044

Please sign in to comment.