Skip to content
This repository has been archived by the owner on Feb 15, 2021. It is now read-only.

Access-Control-Allow-Origin not returned #14

Open
guocheng opened this issue Apr 8, 2016 · 4 comments
Open

Access-Control-Allow-Origin not returned #14

guocheng opened this issue Apr 8, 2016 · 4 comments
Labels

Comments

@guocheng
Copy link

guocheng commented Apr 8, 2016

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.

CORS_ORIGIN_ALLOW_ALL = False

CORS_ORIGIN_WHITELIST = (
    '127.0.0.1',
)

I did supply Origin in the header.

@gustavi
Copy link

gustavi commented Apr 18, 2016

Thanks for the report. We check it soon.

@gustavi gustavi added the bug label Apr 18, 2016
@gustavi gustavi added the ready label May 13, 2016
@Crocmagnon
Copy link

Hello,
Any news on this ?

@gustavi
Copy link

gustavi commented May 18, 2016

No time atm. In my TODO list but a PR is welcom !

@edmorley
Copy link

edmorley commented Jun 7, 2016

@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.

@gustavi gustavi removed the ready label Jun 16, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants