mirror of
https://github.com/Noratrieb/vps.git
synced 2026-01-14 16:55:00 +01:00
fix cors headers
This commit is contained in:
parent
ef7089772c
commit
e225058f4c
1 changed files with 3 additions and 3 deletions
|
|
@ -12,7 +12,7 @@
|
|||
Access-Control-Allow-Origin "{args.0}"
|
||||
Access-Control-Allow-Methods "GET, POST, PUT, PATCH, DELETE, OPTIONS"
|
||||
Access-Control-Allow-Credentials "false"
|
||||
Access-Control-Allow-Headers *
|
||||
Access-Control-Allow-Headers "${args.1}"
|
||||
Access-Control-Max-Age "86400"
|
||||
defer
|
||||
}
|
||||
|
|
@ -38,7 +38,7 @@ docker.nilstrieb.dev {
|
|||
}
|
||||
|
||||
api.hugo-chat.nilstrieb.dev {
|
||||
import cors https://hugo-chat.nilstrieb.dev
|
||||
import cors https://hugo-chat.nilstrieb.dev "DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type"
|
||||
reverse_proxy * localhost:5001
|
||||
}
|
||||
|
||||
|
|
@ -47,7 +47,7 @@ hugo-chat.nilstrieb.dev {
|
|||
}
|
||||
|
||||
api.cors-school.nilstrieb.dev {
|
||||
import cors https://cors-school.nilstrieb.dev
|
||||
import cors https://cors-school.nilstrieb.dev "DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,token,refresh-token,Authorization"
|
||||
reverse_proxy * localhost:5003
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue