fumi on Nostr: NetlifyでのCORSの対応は、以下のどちらかでいけるみたい。 1. ...
NetlifyでのCORSの対応は、以下のどちらかでいけるみたい。
1. [netlify.toml]への追記
[[headers]]
for = "/*"
[headers.values]
Access-Control-Allow-Origin = "*"
2. [_headers]を作成・設置
/*
Access-Control-Allow-Origin: "*"
Published at
2023-02-05 01:31:57Event JSON
{
"id": "0a28ed37ea67a0bb92e2a1112f6a1317c41c8e580cf942c704ad86c02d019548",
"pubkey": "89e0fc458db26860db5e70646f809a626e712b319c54eb1447b726a563cea9f1",
"created_at": 1675560717,
"kind": 1,
"tags": [],
"content": "NetlifyでのCORSの対応は、以下のどちらかでいけるみたい。\n\n1. [netlify.toml]への追記\n\n[[headers]]\n for = \"/*\"\n [headers.values]\n Access-Control-Allow-Origin = \"*\"\n\n2. [_headers]を作成・設置\n\n/*\n Access-Control-Allow-Origin: \"*\"\n\n",
"sig": "1b75b49d35eec36faf0a03a623712f1629211fc177bf8dff1d2d3886bd6db6e4b033af2a570b1babddff7d0b787b7714078bab13310d23d7eb245d0230e215fd"
}