Fix CORS for htmx

This commit is contained in:
Roberto Alsina 2023-02-08 14:32:47 -03:00
parent 404eb0e66f
commit dbd12a5c7b
2 changed files with 7 additions and 0 deletions

View File

@ -6,3 +6,9 @@ Details at [the blog post](http://ralsina.me/weblog/posts/the-cheapest-server.ht
When adding a new hostname, remember to create a cert for it using
`flyctl certs create hostname`
Every 90 days the tailscale auth key will expire and you need to set a new one as
a secret.
* Create the new one at https://login.tailscale.com/admin/settings/keys
* Configure it using flyctl secrets set TAILSCALE_AUTHKEY={{PASTEKEYHERE}}

View File

@ -39,6 +39,7 @@ server {
server_name faas.ralsina.me;
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Headers' '*';
add_header 'Access-Control-Allow-Credentials' 'true';
location / {