Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Origin: null on POST request #21

Open
Ymatigoosa opened this issue Feb 14, 2017 · 0 comments
Open

Origin: null on POST request #21

Ymatigoosa opened this issue Feb 14, 2017 · 0 comments

Comments

@Ymatigoosa
Copy link

When I am trying to use POST requests app sends requests with following headers:

Accept:*/*
Accept-Encoding:gzip, deflate
Accept-Language:en-US
Connection:keep-alive
Content-Length:112
content-type:application/json
Host:localhost:9000
Origin:null
User-Agent:Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) graphql-ide/1.1.0 Chrome/53.0.2785.143 Electron/1.4.15 Safari/537.36

And my cors filter refuses to accept Origin:null because null is not valid url

[trace] p.f.c.CORSFilter - Invalid CORS request;Origin=Some(null);Method=POST;Access-Control-Request-Headers=None

P.S. GET request produces request without Origin header and it is accepted without any problems

Accept:*/*
Accept-Encoding:gzip, deflate
Accept-Language:en-US
Connection:keep-alive
Host:localhost:9000
User-Agent:Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) graphql-ide/1.1.0 Chrome/53.0.2785.143 Electron/1.4.15 Safari/537.36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant