Add Cache-Control header to CORS (#6490)

This commit is contained in:
Davide Porrovecchio
2018-10-16 01:46:55 +02:00
committed by Sam
parent fc94732f88
commit 005e1f5373
2 changed files with 2 additions and 2 deletions

View File

@ -107,7 +107,7 @@ describe Hijack do
expected = {
"Access-Control-Allow-Origin" => "www.rainbows.com",
"Access-Control-Allow-Headers" => "Content-Type, X-Requested-With, X-CSRF-Token, Discourse-Visible, User-Api-Key, User-Api-Client-Id",
"Access-Control-Allow-Headers" => "Content-Type, Cache-Control, X-Requested-With, X-CSRF-Token, Discourse-Visible, User-Api-Key, User-Api-Client-Id",
"Access-Control-Allow-Credentials" => "true",
"Access-Control-Allow-Methods" => "POST, PUT, GET, OPTIONS, DELETE"
}