Skip to content

Commit

Permalink
Fix CORS test.
Browse files Browse the repository at this point in the history
  • Loading branch information
bhearsum committed Jun 27, 2019
1 parent 347bc7c commit 78eaef7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion auslib/test/admin/views/test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,6 @@ def testContentSecurityPolicyIsSet(self):

def testCORSIsSet(self):
ret = self.client.get("/rules")
self.assertEqual(ret.headers.get("Access-Control-Allow-Headers"), "Authorization")
self.assertEqual(ret.headers.get("Access-Control-Allow-Headers"), "Authorization, Content-Type")
self.assertEqual(ret.headers.get("Access-Control-Allow-Origin"), "*")
self.assertEqual(ret.headers.get("Access-Control-Allow-Methods"), "OPTIONS, GET, POST, PUT, DELETE")

0 comments on commit 78eaef7

Please sign in to comment.