1
0
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:
Cameron
2020-04-17 13:48:16 -07:00
parent 6677e75fcb
commit 5b34bc9bf1

View File

@@ -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>