bfgreen on Nostr: I had to add a .toml file with Access-Control-Allow-Origin to make CORS work. ...
I had to add a .toml file with Access-Control-Allow-Origin to make CORS work.
[[headers]]
# Define which paths this specific [[headers]] block will cover. for = "/*”
[headers.values]
Access-Control-Allow-Origin = "*”
Published at
2024-11-01 21:38:40Event JSON
{
"id": "9f33e06c41f103fc41038830a7d2caa73c3f4770df9ae915c292678f4b67e54a",
"pubkey": "0c9e5e17fbdf555ef41daf3c3a196749c848f9c791966f30fae5e4c0480e870b",
"created_at": 1730497120,
"kind": 1,
"tags": [
[
"p",
"a39d19ec238af1b14b8cf36185a933b141f994e2ff7a1323a4cbb65f3d88f61e"
],
[
"e",
"ff0c95da6d93c41110d2fcb011668c4e95e7968ad545eda55d75640084f2c4e1"
],
[
"q",
"ff0c95da6d93c41110d2fcb011668c4e95e7968ad545eda55d75640084f2c4e1"
]
],
"content": "I had to add a .toml file with Access-Control-Allow-Origin to make CORS work.\n\n[[headers]] \n\t # Define which paths this specific [[headers]] block will cover. for = \"/*” \n\t [headers.values] \t\n\t\tAccess-Control-Allow-Origin = \"*” ",
"sig": "03ad1f85486f22164645868ee9cd922cde274a2959421a7941756b6776a8346813470c9161b270ef9a30e4697792fed54ae09471843a50581608fcdf1b884729"
}