# Cross-Origin Request Blocked on Phoscon Web app

**URL:** <https://forum.phoscon.de/t/cross-origin-request-blocked-on-phoscon-web-app/5033>\
**Category:** General Support\
**Created:** [August 3, 2024, 8:38am UTC](https://forum.phoscon.de/t/cross-origin-request-blocked-on-phoscon-web-app/5033 "2024-08-03T08:38:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mfreudenberg](https://forum.phoscon.de/user_avatar/forum.phoscon.de/mfreudenberg/32/4012_2.png) [@mfreudenberg](https://forum.phoscon.de/u/mfreudenberg)\
**Post date:** [August 3, 2024, 8:38am UTC](https://forum.phoscon.de/t/cross-origin-request-blocked-on-phoscon-web-app/5033/1 "2024-08-03T08:38:14Z")

</div>

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:

```auto
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`

```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;

---

<div class="post-metadata">

**Author:** ![Robban](https://forum.phoscon.de/user_avatar/forum.phoscon.de/robban/32/11_2.png) [@Robban](https://forum.phoscon.de/u/Robban)\
**Post date:** [August 4, 2024, 6:41am UTC](https://forum.phoscon.de/t/cross-origin-request-blocked-on-phoscon-web-app/5033/2 "2024-08-04T06:41:37Z")

</div>

You have specified DECONZ\_WS\_PORT twice

---

<div class="post-metadata">

**Author:** ![mfreudenberg](https://forum.phoscon.de/user_avatar/forum.phoscon.de/mfreudenberg/32/4012_2.png) [@mfreudenberg](https://forum.phoscon.de/u/mfreudenberg)\
**Post date:** [August 4, 2024, 11:50am UTC](https://forum.phoscon.de/t/cross-origin-request-blocked-on-phoscon-web-app/5033/3 "2024-08-04T11:50:08Z")

</div>

You’re right! Damn, didn’t see that. Meanwhile i figured out, that it’s also possible to access the frontpage via the `pwa/login2.html` path. I’m wondering, what that is.

I’ve updated the changes in my `docker-compose.yml`, but still i can’t login with the “standard-login-path” aka `http://192.168.1.60:60080/pwa/login.html`.

---

<div class="post-metadata">

**Author:** ![Robban](https://forum.phoscon.de/user_avatar/forum.phoscon.de/robban/32/11_2.png) [@Robban](https://forum.phoscon.de/u/Robban)\
**Post date:** [August 5, 2024, 6:16am UTC](https://forum.phoscon.de/t/cross-origin-request-blocked-on-phoscon-web-app/5033/4 "2024-08-05T06:16:42Z")

</div>

I’ve seen that mentioned somewhere being a bug, if you search for login2 on the forums or on discord you would probably find manups explanation
