Skip to content

Commit

Permalink
add cors for public js
Browse files Browse the repository at this point in the history
  • Loading branch information
djyde committed Oct 14, 2024
1 parent edcc7f1 commit b1ab80a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
module.exports = {
headers() {
return [
{
source: "/js/*",
headers: [
{ key: "Access-Control-Allow-Origin", value: "*" },
]
}
]
},
rewrites() {
return [
{
Expand Down

0 comments on commit b1ab80a

Please sign in to comment.