Bug: Multiple CORS header 'Access-Control-Allow-Origin'
Author: alexgarelCreated Nov 29, 2022Updated Nov 9, 2024
I run the docker version of beehive:
docker run --rm -p 8181:8181 fribbledom/beehiveI open http://127.0.0.1:8181/ if firefox.
I get this error in console: Multiple CORS header 'Access-Control-Allow-Origin' not allowed

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: 0In 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
Source: muesli/beehive