From 37c5280f731354e2d760b5aa5a0d4b877b00b7c4 Mon Sep 17 00:00:00 2001 From: Sam Date: Mon, 17 Sep 2018 11:37:01 +1000 Subject: [PATCH] correct spec --- spec/components/hijack_spec.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spec/components/hijack_spec.rb b/spec/components/hijack_spec.rb index 7e34413b502..e06532e9dc3 100644 --- a/spec/components/hijack_spec.rb +++ b/spec/components/hijack_spec.rb @@ -108,7 +108,8 @@ 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-Credentials" => "true" + "Access-Control-Allow-Credentials" => "true", + "Access-Control-Allow-Methods" => "POST, PUT, GET, OPTIONS, DELETE" } expect(headers).to eq(expected)