ソースを参照

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>

読み込み中…
キャンセル
保存