Merge pull request #2604 from vikhyat/fix-cors
Add Access-Control-Allow-Credentials
This commit is contained in:
commit
58e05cb083
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue