瀏覽代碼

htaccess

master
Florian Eisenmenger 1 年之前
父節點
當前提交
3952e95212
共有 1 個文件被更改,包括 16 次插入0 次删除
  1. +16
    -0
      matsen-tool/.htaccess

+ 16
- 0
matsen-tool/.htaccess 查看文件

@@ -1,4 +1,10 @@
<IfModule mod_rewrite.c>
# PHP Upload Settings
php_value upload_max_filesize 10M
php_value post_max_size 10M
php_value max_execution_time 300
php_value max_input_time 300

RewriteEngine On
RewriteBase /

@@ -7,4 +13,14 @@
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ index.html [L]

# Erlaubt OPTIONS für CORS pre-flight requests
RewriteCond %{REQUEST_METHOD} OPTIONS
RewriteRule ^(.*)$ $1 [R=200,L]

# Content-Type Header erlauben
<IfModule mod_headers.c>
Header always set Access-Control-Allow-Headers "Content-Type, Authorization"
Header always set Access-Control-Allow-Methods "POST, GET, OPTIONS, DELETE, PUT, PATCH"
</IfModule>
</IfModule>

Loading…
取消
儲存