mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: get window.onerror working for CDNs
This commit is contained in:
@@ -43,7 +43,7 @@ server {
|
||||
set $public /var/www/discourse/public;
|
||||
|
||||
# Prevent Internet Explorer 10 "compatibility mode", which breaks Discourse.
|
||||
# If other subdomains under your domain are supposed to use Internet Explorer Compatibility mode,
|
||||
# If other subdomains under your domain are supposed to use Internet Explorer Compatibility mode,
|
||||
# it may be used for this one too, unless you explicitly tell IE not to use it. Alternatively,
|
||||
# some people have reported having compatibility mode "stuck" on for some reason.
|
||||
# (This will also prevent compatibility mode in IE 8 and 9, but those browsers aren't supported anyway.
|
||||
@@ -62,6 +62,8 @@ server {
|
||||
expires 1y;
|
||||
add_header ETag "";
|
||||
add_header Cache-Control public;
|
||||
# enables window.onerror
|
||||
add_header Access-Control-Allow-Origin *;
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user