Merge pull request #2604 from vikhyat/fix-cors

Add Access-Control-Allow-Credentials
This commit is contained in:
Sam 2014-07-30 14:07:27 +10:00
commit 58e05cb083
1 changed files with 1 additions and 0 deletions

View File

@ -15,6 +15,7 @@ if GlobalSetting.enable_cors && GlobalSetting.cors_origin.present?
end
headers['Access-Control-Allow-Origin'] = origin || @origins[0]
headers['Access-Control-Allow-Credentials'] = "true"
[status,headers,body]
end
end