Hi,
today i tried to access the phoscon web app via Laptop, but the login prompt did not show up. I opened the developer console and saw a lot of these errors in the console:
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://192.168.1.16:8080/api/config?_=1722671484526. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 404.
below my docker-composel.yml
version: "3"
services:
deconz:
image: deconzcommunity/deconz:latest
container_name: deconz
restart: always
privileged: true
ports:
- 60080:60080
- 60081:60081
- 60082:5900
volumes:
- data:/opt/deCONZ
devices:
- /dev/ttyUSB0
environment:
- TZ=Europe/Berlin
- DECONZ_WEB_PORT=60080
- DECONZ_WS_PORT=443
- DECONZ_DEVICE=/dev/ttyUSB0
- DECONZ_START_VERBOSE=0
- DECONZ_BAUDRATE=115200
- DECONZ_WS_PORT=60081
- DECONZ_VNC_MODE=1
- DECONZ_VNC_PORT=5900
- DECONZ_VNC_PASSWORD=Deconz1!
volumes:
data:
As you can see, i am forwarding all relevant ports to a high port number. I have also changed the default web-port to 60080. I observed in the dev console, that apparently the web app tries to access the IP on the port 8080. This of course returns a HTTP-code of 404, because port 8080 is not forwarded into the container.
Is this intended behavior? Can i somehow configure this port to be different? Could this be some remaining hard coded port, that wasn’t made configurable?
BR,
Michael;