Add .htaccess
This commit is contained in:
commit
60522af608
1 changed files with 11 additions and 0 deletions
11
.htaccess
Normal file
11
.htaccess
Normal 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]
|
||||||
Loading…
Add table
Add a link
Reference in a new issue