You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 15, 2021. It is now read-only.
When I set CORS_ORIGIN_ALLOW_ALL = True, I can see Access-Control-Allow-Origin: * in the response header. However, when I set it to false, and use white list, I cannot see Access-Control-Allow-Origin in the response header.
@guocheng, what are you passing as Origin in the request header?
From code inspection this should work if you pass Origin: http://127.0.0.1, however if instead Origin: 127.0.0.1, an Access-Control-Allow-Origin header wouldn't be set.
When I set
CORS_ORIGIN_ALLOW_ALL = True
, I can seeAccess-Control-Allow-Origin: *
in the response header. However, when I set it to false, and use white list, I cannot seeAccess-Control-Allow-Origin
in the response header.I did supply
Origin
in the header.The text was updated successfully, but these errors were encountered: