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

Bug: Multiple CORS header 'Access-Control-Allow-Origin' #394

Open
alexgarel opened this issue Nov 29, 2022 · 0 comments
Open

Bug: Multiple CORS header 'Access-Control-Allow-Origin' #394

alexgarel opened this issue Nov 29, 2022 · 0 comments

Comments

@alexgarel
Copy link

I run the docker version of beehive:

docker run --rm -p 8181:8181 fribbledom/beehive

I open http://127.0.0.1:8181/ if firefox.

I get this error in console:
Multiple CORS header 'Access-Control-Allow-Origin' not allowed

Capture d’écran du 2022-11-29 12-06-39

The page remains blank.
The preflight CORS request (OPTION), do return multiple 'Access-Control-Allow-Origin' headers:

HTTP/1.1 200 OK
Access-Control-Allow-Headers: authorization, content-type
Access-Control-Allow-Headers: content-type
Access-Control-Allow-Methods: GET, POST, PUT, PATCH, DELETE
Access-Control-Allow-Methods: GET,GET
Access-Control-Allow-Origin: *
Access-Control-Allow-Origin: http://127.0.0.1:8181
Allow: GET,GET
Date: Tue, 29 Nov 2022 11:00:45 GMT
Content-Length: 0

In docker console, everything seems ok.

linux version: Ubuntu 22.04.1 LTS (5.15.0-52-generic)
docker version: Docker version 20.10.17, build 100c701
beehive image: fribbledom/beehive latest 17 months ago 34MB

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