wisemapping / wisemapping-open-source

Open Source Mindmap Tool
Other
66 stars 20 forks source link

Unable to open wisemapping using 2 different IP #6

Open rishabhrkaushik opened 1 month ago

rishabhrkaushik commented 1 month ago

I've hosted wisemapping using docker image. Let's say I login on the same machine first using localhost:port, I'm able to use the application as intended. If I now open the application using IP address instead of localhost, the application doesn't load. All requests are sent to localhost instead. image

Doing the thing the other way around, If I use IP address first, the application works as intended but changing it to localhost creates an error same as last one.

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://192.168.0.12:9081/static/webapp/vendors.bundle.js. (Reason: CORS header \u2018Access-Control-Allow-Origin\u2019 missing). Status code: 200.

<script> source URI is not allowed in this document: \u201chttp://192.168.0.12:9081/static/webapp/vendors.bundle.js\u201d. login:59:105
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://192.168.0.12:9081/static/webapp/app.bundle.js. (Reason: CORS header \u2018Access-Control-Allow-Origin\u2019 missing). Status code: 200.

<script> source URI is not allowed in this document: \u201chttp://192.168.0.12:9081/static/webapp/app.bundle.js\u201d. login:60:101

Looks like a CORS configuration issue but I'm not sure. Docker Image used: wisemapping/wisemapping:latest@sha256:7668a0980e741604368a21a1117715e5c9e86a1275fbf99e354c3a55c8445bbd

veigap commented 1 month ago

Hi !, What version of the docker image are you using ?.

Regards Paulo