mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
TEMP: disable CORS when using CDN
This commit is contained in:
@@ -14,11 +14,12 @@ module ApplicationHelper
|
||||
def script(*args)
|
||||
# This crazy stuff is needed to get window.onerror working under a CDN
|
||||
# NGINX change is also required and baked into sample config
|
||||
if GlobalSetting.cdn_url
|
||||
javascript_include_tag(*args, "crossorigin" => "anonymous")
|
||||
else
|
||||
# @sam: disabling this until we update our CDN configuration
|
||||
#if GlobalSetting.cdn_url
|
||||
# javascript_include_tag(*args, "crossorigin" => "anonymous")
|
||||
#else
|
||||
javascript_include_tag(*args)
|
||||
end
|
||||
#end
|
||||
end
|
||||
|
||||
def discourse_csrf_tags
|
||||
|
||||
Reference in New Issue
Block a user