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

Missing CORS header for PUT requests #40

Open
segli opened this issue Nov 28, 2022 · 0 comments
Open

Missing CORS header for PUT requests #40

segli opened this issue Nov 28, 2022 · 0 comments

Comments

@segli
Copy link

segli commented Nov 28, 2022

When sending a PUT request, the required CORS response headers are missing.

Preflight request:

OPTIONS /api/v1/records/32224674.json HTTP/1.1
Accept: */*
Accept-Encoding: gzip, deflate, br
Accept-Language: de,en;q=0.9,fr;q=0.8
Access-Control-Request-Headers: content-type,x-auth-key,x-auth-user
Access-Control-Request-Method: PUT
Cache-Control: no-cache
Connection: keep-alive
Host: churchmetrics.com
Origin: http://localhost:8080
Pragma: no-cache
Referer: http://localhost:8080/
Sec-Fetch-Dest: empty
Sec-Fetch-Mode: cors
Sec-Fetch-Site: cross-site
User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1

Response:

HTTP/1.1 200 OK
Server: Cowboy
Date: Mon, 28 Nov 2022 13:25:54 GMT
Connection: keep-alive
Transfer-Encoding: chunked
Via: 1.1 vegur

PUT requests work with Curl. POST requests are also working.

Thanks!

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