Skip to content

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

Open
@alexgarel

Description

@alexgarel

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions