set php handler, fix name of mod_headers

This commit is contained in:
Uwe Steinmann 2020-10-26 15:26:04 +01:00
parent 2dfbc164ae
commit 8f563622b6

View File

@ -1,10 +1,11 @@
RewriteEngine on
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
<IfModule mod_header.c>
<Files ~ "^swagger\.yaml">
SetHandler application/x-httpd-php
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "*"
Header set Access-Control-Allow-Methods "GET"
Header set Access-Control-Allow-Headers "X-Requested-With, Content-Type, Accept, Origin, Authorization"
</Files>
</IfModule>
</Files>