dev-lu / osint_toolkit

A full stack web application that combines many tools and services for security analysts into a single tool.
MIT License
479 stars 81 forks source link

Uncaught runtime errors: ERROR Network Error ERROR #5

Closed UserCr4ig closed 1 year ago

UserCr4ig commented 1 year ago

Hi,

I've attempted to install it on 2 separate servers, and each time I encountered a screen displaying the following:

Uncaught runtime errors: ERROR Network Error ERROR Network Error ERROR Network Error ERROR

I've tried to analyze the code, but I can't figure out the cause of this error.

dev-lu commented 1 year ago

Hi, the cause of this error is CORS. You can check it in your browser console. Did you use Docker or do a manual installation?

For Docker: Uncomment these two lines and insert the IP and Port of the server where the backend is located.

    environment:
      - BACKEND_URL=http://<IP_ADDRESS>:<PORT> # Backend URL without trailing slash

For manual installation: Set an environment variable on the machine where your frontend is installed:

export REACT_APP_BACKEND_URL="http://<IP>:<PORT>"
UserCr4ig commented 1 year ago

Yes i use docker, il try this and check if it patches the issue

UserCr4ig commented 1 year ago

It didn't work. I've tried with localhost:8000 and 192.168.1.10:8000 (where my backend is located)

dev-lu commented 1 year ago

Please take a look at your browser console to see where the frontend is attempting to connect to.