Skip to content

Commit b53b9fe

Browse files
authored
chore(nft-quest): enable cors for nft metadata (#31)
1 parent 7b2521c commit b53b9fe

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

firebase.json

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,26 @@
1616
"target": "nft-quest-testnet",
1717
"trailingSlash": false,
1818
"public": "examples/nft-quest/.output/public",
19-
"ignore": ["firebase.json", "**/.*", "**/node_modules/**"]
19+
"ignore": ["firebase.json", "**/.*", "**/node_modules/**"],
20+
"headers": [
21+
{
22+
"source": "/nft/metadata.json",
23+
"headers": [
24+
{
25+
"key": "Access-Control-Allow-Origin",
26+
"value": "*"
27+
},
28+
{
29+
"key": "Access-Control-Allow-Methods",
30+
"value": "GET"
31+
},
32+
{
33+
"key": "Access-Control-Allow-Headers",
34+
"value": "Content-Type"
35+
}
36+
]
37+
}
38+
]
2039
}
2140
]
2241
}

0 commit comments

Comments
 (0)