Skip to content

Commit

Permalink
feat: update CORS configuration to allow all origins and add max age …
Browse files Browse the repository at this point in the history
…header
  • Loading branch information
Rafacv23 committed Feb 1, 2025
1 parent 42c7abc commit 2725279
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const nextConfig = {
headers: [
{
key: "Access-Control-Allow-Origin",
value: "https://f1api.dev",
value: "*",
},
{
key: "Access-Control-Allow-Methods",
Expand All @@ -17,6 +17,10 @@ const nextConfig = {
key: "Access-Control-Allow-Headers",
value: "Content-Type, Authorization",
},
{
key: "Access-Control-Max-Age",
value: "300",
},
],
},
]
Expand Down

0 comments on commit 2725279

Please sign in to comment.