aboutsummaryrefslogtreecommitdiff
path: root/staticwebapp.config.json
diff options
context:
space:
mode:
authorAriel Costas Guerrero <94913521+arielcostas@users.noreply.github.com>2024-10-28 10:09:56 +0100
committerAriel Costas Guerrero <94913521+arielcostas@users.noreply.github.com>2024-10-28 10:09:56 +0100
commite297e50f77272676dc993eacc1fee54daa72b47f (patch)
tree426a647317895db1822174f9e455d007bd4735dd /staticwebapp.config.json
parentd375b93faadac049b1b102684e89fc1b3e3b3f53 (diff)
Move vcard to VCF and improve MIME
Diffstat (limited to 'staticwebapp.config.json')
-rw-r--r--staticwebapp.config.json12
1 files changed, 11 insertions, 1 deletions
diff --git a/staticwebapp.config.json b/staticwebapp.config.json
index d404c78..0a5f88a 100644
--- a/staticwebapp.config.json
+++ b/staticwebapp.config.json
@@ -3,6 +3,16 @@
"X-Frame-Options": "DENY",
"X-Content-Type-Options": "nosniff",
"X-XSS-Protection": "1; mode=block",
- "Content-Security-Policy": "default-src 'none'; script-src 'self'; style-src 'self'; img-src 'self'; font-src 'self'"
+ "Content-Security-Policy": "default-src 'none'; script-src 'self'; style-src 'self'; img-src 'self'; font-src 'self'"
+ },
+ "routes": [
+ {
+ "route": "/vcard",
+ "rewrite": "/vcard.vcf",
+ "statusCode": 301
+ }
+ ],
+ "mimeTypes": {
+ ".vcf": "text/vcard"
}
} \ No newline at end of file