provoost on Nostr: I fixed the CORS header, but still not seeing the README (which makes sense give the ...
I fixed the CORS header, but still not seeing the README (which makes sense give the above, the browser isn't asking for it):
In case anyone else needs it:
```
map $request_uri $allow_origin {
default "";
~^/[a-z0-9]+/[a-z0-9]+/raw "*";
}
```
location / {
...
add_header Access-Control-Allow-Origin $allow_origin;
}
Published at
2024-09-03 07:22:45Event JSON
{
"id": "f84e5da79a4fd49e88d6aa0e1e1defaf71933be0cda21efb2df2b2f882f2fc72",
"pubkey": "8685ebef665338dd6931e2ccdf3c19d9f0e5a1067c918f22e7081c2558f8faf8",
"created_at": 1725348165,
"kind": 1,
"tags": [
[
"e",
"059aad0de51a1e9f6c9f7ff6169244af0bdd473234cd1b42c443af5049abdb62",
"wss://relay.damus.io",
"root"
],
[
"e",
"059aad0de51a1e9f6c9f7ff6169244af0bdd473234cd1b42c443af5049abdb62",
"wss://relay.damus.io",
"reply"
],
[
"r",
"f9cbcfb08098bf664cd5fd304f31dc0f2bdc31da"
],
[
"a",
"30617:a008def15796fba9a0d6fab04e8fd57089285d9fd505da5a83fe8aad57a3564d:gitworkshop"
],
[
"p",
"a008def15796fba9a0d6fab04e8fd57089285d9fd505da5a83fe8aad57a3564d"
]
],
"content": "I fixed the CORS header, but still not seeing the README (which makes sense give the above, the browser isn't asking for it):\nIn case anyone else needs it:\n\n```\nmap $request_uri $allow_origin {\n default \"\";\n ~^/[a-z0-9]+/[a-z0-9]+/raw \"*\";\n}\n```\n\nlocation / {\n...\n\nadd_header Access-Control-Allow-Origin $allow_origin;\n}",
"sig": "7a6a17eeed87d93371014b34a2333ad98586985a50a2614c406b27008a24882414ae41be94141f694610f60029986d5fe32c0950d23981d3a27e9fad99b57e7d"
}