Add .htaccess

This commit is contained in:
Blackwhitebear8 2024-11-23 19:35:53 +01:00
commit 60522af608

11
.htaccess Normal file
View file

@ -0,0 +1,11 @@
# Sta CORS toe vanaf elke origin
<IfModule mod_headers.c>
Header Set Access-Control-Allow-Origin "*"
Header Set Access-Control-Allow-Methods "GET, POST, OPTIONS"
Header Set Access-Control-Allow-Headers "Content-Type, Authorization"
</IfModule>
# Zorg ervoor dat OPTIONS requests worden afgehandeld
RewriteEngine On
RewriteCond %{REQUEST_METHOD} OPTIONS
RewriteRule ^(.*)$ $1 [R=200,L]