Files
sam-kd/.htaccess

23 lines
928 B
ApacheConf
Raw Normal View History

# HTID:11765931: DO NOT REMOVE OR MODIFY THIS LINE AND THE LINES BELOW
php_value display_errors 1
php_value session.gc_maxlifetime 86400
php_value session.cache_expire 86400
# DO NOT REMOVE OR MODIFY THIS LINE AND THE LINES ABOVE HTID:11765931:
# CORS-enabled images & webfonts / Access-Control-Allow-Origin 관련 패치
<IfModule headers_module>
<IfModule setenvif_module>
<FilesMatch "\.(gif|png|jpe?g|svgz?|ico|webp)$">
SetEnvIf Origin ":" IS_CORS
Header set Access-Control-Allow-Origin "*" env=IS_CORS
</FilesMatch>
</IfModule>
<FilesMatch "\.(ttf|ttc|otf|eot|woff2?|css|js)$">
Header set Access-Control-Allow-Origin "*"
</FilesMatch>
</IfModule>
Header set Access-Control-Allow-Origin *
Header set Access-Control-Allow-Methods "POST, GET, OPTIONS, DELETE, PUT"
Header set Access-Control-Allow-Headers "x-requested-with, Content-Type, origin, authorization, accept, client-security-token"