Skip to content

Commit

Permalink
attempt commeting the headers for web
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielmfern committed Oct 15, 2024
1 parent 89a115f commit a16dc30
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions apps/web/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,24 +32,24 @@ module.exports = {
},
];
},
async headers() {
return [
{
source: "/api/:path*",
headers: [
{ key: "Access-Control-Allow-Credentials", value: "true" },
{ key: "Access-Control-Allow-Origin", value: "*" },
{
key: "Access-Control-Allow-Methods",
value: "GET,OPTIONS,PATCH,DELETE,POST,PUT",
},
{
key: "Access-Control-Allow-Headers",
value:
"X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version",
},
],
},
];
},
//async headers() {
// return [
// {
// source: "/api/:path*",
// headers: [
// { key: "Access-Control-Allow-Credentials", value: "true" },
// { key: "Access-Control-Allow-Origin", value: "*" },
// {
// key: "Access-Control-Allow-Methods",
// value: "GET,OPTIONS,PATCH,DELETE,POST,PUT",
// },
// {
// key: "Access-Control-Allow-Headers",
// value:
// "X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version",
// },
// ],
// },
// ];
//},
};

0 comments on commit a16dc30

Please sign in to comment.