holtwick on Nostr: Using .htaccess to set free profile pic for CORS: ``` <Files "me.jpg"> Header set ...
Using .htaccess to set free profile pic for CORS:
```
<Files "me.jpg">
Header set Access-Control-Allow-Origin "*"
Header set Access-Control-Allow-Methods "GET,PUT,POST,DELETE"
Header set Access-Control-Allow-Headers "Content-Type, Authorization"
Header set Access-Control-Allow-Credentials true
</Files>
```
Published at
2022-11-26 17:27:46Event JSON
{
"id": "3fe8034c745473a3107f3562e7acf7307e3a24779141f3dddd8b58d9ef331e89",
"pubkey": "553e1fca936d39751d3223dd4fea05886631de3923eaba5eb551e85847d332d6",
"created_at": 1669483666,
"kind": 1,
"tags": [],
"content": "Using .htaccess to set free profile pic for CORS:\n\n```\n\u003cFiles \"me.jpg\"\u003e\n Header set Access-Control-Allow-Origin \"*\" \n Header set Access-Control-Allow-Methods \"GET,PUT,POST,DELETE\"\n Header set Access-Control-Allow-Headers \"Content-Type, Authorization\"\n Header set Access-Control-Allow-Credentials true\n\u003c/Files\u003e\n```",
"sig": "502990c9af037733e67f5f724bb366d30b6fa5f6f4a4845587a018c955c82284870f8194322d1cd4a9b761f7eedc47371b8af3f60c3fb09803da464cdbb75e87"
}