From e297e50f77272676dc993eacc1fee54daa72b47f Mon Sep 17 00:00:00 2001 From: Ariel Costas Guerrero <94913521+arielcostas@users.noreply.github.com> Date: Mon, 28 Oct 2024 10:09:56 +0100 Subject: Move vcard to VCF and improve MIME --- staticwebapp.config.json | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'staticwebapp.config.json') 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 -- cgit v1.3