TEMP: disable CORS when using CDN

This commit is contained in:
Régis Hanol 2014-05-16 15:11:12 +02:00
parent e4125e16e9
commit 3a0b23191c
1 changed files with 5 additions and 4 deletions

View File

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