anhnt0212/rest-sifoni/master/web/.htaccess - Htaccess File

anhnt0212/rest-sifoni/master/web/.htaccess

<IfModule mod_rewrite.c>
    Options -MultiViews
    RewriteEngine On
    RewriteCond %{HTTP:Authorization} .+
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php [QSA,L]
</IfModule>

<IfModule mod_headers.c>
    Header set Access-Control-Allow-Origin: *
    Header set Access-Control-Allow-Methods: "GET, POST, PUT, DELETE, OPTIONS"
    Header set Access-Control-Allow-Headers: "Authorization, Content-Type"
    Header set Access-Control-Max-Age: 86400
    Header set Access-Control-Allow-Credentials: true
</IfModule>

On Github License

Files

Download PDF of Htaccess file
GET, POST, PUT, REQUEST_FILENAME

Comments

Apache