1
0
Fork 0
mirror of https://github.com/kou029w/fogtype.com synced 2025-01-17 23:55:02 +00:00

add access-control-allow-origin

This commit is contained in:
Nebel 2024-12-16 23:46:01 +09:00
parent 222bd35dd2
commit 9ad9036bd0
Signed by: nebel
GPG key ID: 79807D08C6EF6460

View file

@ -10,6 +10,20 @@ www.fogtype.com {
redir https://fogtype.com{uri} 308
}
net.fogtype.com {
@options {
method OPTIONS
}
handle @options {
header {
access-control-allow-origin https://headscale.fogtype.com
access-control-allow-methods *
access-control-allow-headers *
}
respond 204
}
header access-control-allow-origin https://headscale.fogtype.com
reverse_proxy headscale:8080
}
mta-sts.fogtype.com {