muesli / beehive

A flexible event/agent & automation system with lots of bees 🐝
GNU Affero General Public License v3.0
6.25k stars 318 forks source link

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

Open alexgarel opened 1 year ago

alexgarel commented 1 year ago

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