Skip to content

Commit b1ab80a

Browse files
committed
add cors for public js
1 parent edcc7f1 commit b1ab80a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

next.config.js

+10
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
11
module.exports = {
2+
headers() {
3+
return [
4+
{
5+
source: "/js/*",
6+
headers: [
7+
{ key: "Access-Control-Allow-Origin", value: "*" },
8+
]
9+
}
10+
]
11+
},
212
rewrites() {
313
return [
414
{

0 commit comments

Comments
 (0)