cryptpad: relax the CORS headers further to allow for onlyoffice fonts

This commit is contained in:
Armaël Guéneau 2024-11-07 23:45:49 +01:00
parent f32c0c34f3
commit 1a739636ca
2 changed files with 3 additions and 3 deletions

View file

@ -56,14 +56,14 @@ job "cryptpad-debug" {
} }
service { service {
name = "cryptpad" name = "cryptpad-debug"
port = "http" port = "http"
tags = [ tags = [
"tricot pad-debug.deuxfleurs.fr", "tricot pad-debug.deuxfleurs.fr",
"tricot pad-sandbox-debug.deuxfleurs.fr", "tricot pad-sandbox-debug.deuxfleurs.fr",
"tricot-add-header Cross-Origin-Resource-Policy cross-origin", "tricot-add-header Cross-Origin-Resource-Policy cross-origin",
"tricot-add-header Cross-Origin-Embedder-Policy require-corp", "tricot-add-header Cross-Origin-Embedder-Policy require-corp",
"tricot-add-header Access-Control-Allow-Origin https://pad-sandbox-debug.deuxfleurs.fr", "tricot-add-header Access-Control-Allow-Origin *",
"tricot-add-header Access-Control-Allow-Credentials true", "tricot-add-header Access-Control-Allow-Credentials true",
"d53-cname pad-debug.deuxfleurs.fr", "d53-cname pad-debug.deuxfleurs.fr",
"d53-cname pad-sandbox-debug.deuxfleurs.fr", "d53-cname pad-sandbox-debug.deuxfleurs.fr",

View file

@ -63,7 +63,7 @@ job "cryptpad" {
"tricot pad-sandbox.deuxfleurs.fr", "tricot pad-sandbox.deuxfleurs.fr",
"tricot-add-header Cross-Origin-Resource-Policy cross-origin", "tricot-add-header Cross-Origin-Resource-Policy cross-origin",
"tricot-add-header Cross-Origin-Embedder-Policy require-corp", "tricot-add-header Cross-Origin-Embedder-Policy require-corp",
"tricot-add-header Access-Control-Allow-Origin https://pad-sandbox.deuxfleurs.fr", "tricot-add-header Access-Control-Allow-Origin *",
"tricot-add-header Access-Control-Allow-Credentials true", "tricot-add-header Access-Control-Allow-Credentials true",
"d53-cname pad.deuxfleurs.fr", "d53-cname pad.deuxfleurs.fr",
"d53-cname pad-sandbox.deuxfleurs.fr", "d53-cname pad-sandbox.deuxfleurs.fr",