We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3785d58 commit c00e2ebCopy full SHA for c00e2eb
1 file changed
images/web/config/production.conf
@@ -17,8 +17,12 @@
17
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
18
19
# Redirect to www openhistoricalmap.org
20
+ # Skip /map-styles so the non-www host serves the files directly with their
21
+ # CORS headers. A 301 redirect drops Access-Control-Allow-Origin, which breaks
22
+ # cross-origin style fetches (e.g. the map-style minimaps).
23
RewriteCond %{HTTP_HOST} =openhistoricalmap.org
24
RewriteCond %{HTTP_HOST} !^www\. [NC]
25
+ RewriteCond %{REQUEST_URI} !^/map-styles/
26
RewriteRule .* https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
27
28
<Location />
0 commit comments