mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 03:40:37 +02:00
Fix for Access-Control-Allow-Origin console errors when URLs contain queries.
This commit is contained in:
@@ -105,13 +105,13 @@
|
|||||||
AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css text/javascript application/x-javascript application/javascript application/xml text/xml application/rss+xml
|
AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css text/javascript application/x-javascript application/javascript application/xml text/xml application/rss+xml
|
||||||
</ifmodule>
|
</ifmodule>
|
||||||
|
|
||||||
<FilesMatch "\.(js|css|ico|pdf|flv|jpg|jpeg|png|gif|swf|mp3|mp4|eot|otf|ttc|ttf|woff|woff2)$">
|
<FilesMatch "\.(js|css|ico|pdf|flv|jpg|jpeg|png|gif|swf|mp3|mp4|eot|otf|ttc|ttf|woff|woff2)">
|
||||||
<IfModule mod_headers.c>
|
<IfModule mod_headers.c>
|
||||||
Header set Cache-Control "public"
|
Header set Cache-Control "public"
|
||||||
Header unset Cookie
|
Header unset Cookie
|
||||||
Header unset Set-Cookie
|
Header unset Set-Cookie
|
||||||
# Header set Access-Control-Allow-Origin "http://mydomain.com"
|
# Header set Access-Control-Allow-Origin "http://mydomain.com"
|
||||||
# Header set Access-Control-Allow-Origin "*" # if you're really stuck.
|
# Header set Access-Control-Allow-Origin "*" # if you're seeing console errors.
|
||||||
</IfModule>
|
</IfModule>
|
||||||
</FilesMatch>
|
</FilesMatch>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user