Merge pull request #3467 from boushley/enable-cors-logout

Enable CORS requests to pass necessary headers.
This commit is contained in:
Robin Ward 2015-05-14 13:21:05 -04:00
commit 2e85a817b2

View File

@ -29,7 +29,8 @@ if GlobalSetting.enable_cors
end
headers['Access-Control-Allow-Origin'] = origin || cors_origins[0]
headers['Access-Control-Allow-Credentials'] = "true"
headers['Access-Control-Allow-Headers'] = 'X-Requested-With, X-CSRF-Token'
headers['Access-Control-Allow-Credentials'] = 'true'
end
headers