mirror of
https://github.com/discourse/discourse.git
synced 2025-01-18 18:02:46 +08:00
Merge pull request #3467 from boushley/enable-cors-logout
Enable CORS requests to pass necessary headers.
This commit is contained in:
commit
2e85a817b2
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user