Saucy/api.saucy.se/api/src/.htaccess
RewriteEngine On
RewriteBase /v0/
Header always set Access-Control-Allow-Origin "https://saucy.se"
Header always set Access-Control-Allow-Methods "POST, GET, PUT, DELETE, OPTIONS"
Header always set Access-Control-Allow-Headers "X-Requested-With, Content-Type"
RewriteCond %{HTTPS} !=on
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [R,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{HTTP_HOST} ^api.saucy.se [NC]
RewriteRule ^ index.php [QSA,L]
RewriteCond %{REQUEST_METHOD} OPTIONS
RewriteRule ^(.*)$ $1 [R=200,L]
On Github License
Files