diff options
| author | Ariel Costas Guerrero <94913521+arielcostas@users.noreply.github.com> | 2024-10-28 10:09:56 +0100 |
|---|---|---|
| committer | Ariel Costas Guerrero <94913521+arielcostas@users.noreply.github.com> | 2024-10-28 10:09:56 +0100 |
| commit | e297e50f77272676dc993eacc1fee54daa72b47f (patch) | |
| tree | 426a647317895db1822174f9e455d007bd4735dd | |
| parent | d375b93faadac049b1b102684e89fc1b3e3b3f53 (diff) | |
Move vcard to VCF and improve MIME
| -rw-r--r-- | public/vcard.vcf (renamed from public/vcard) | 0 | ||||
| -rw-r--r-- | staticwebapp.config.json | 12 |
2 files changed, 11 insertions, 1 deletions
diff --git a/public/vcard b/public/vcard.vcf index 087c02d..087c02d 100644 --- a/public/vcard +++ b/public/vcard.vcf 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 |
