Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ISSUE] Docker Installation issue #653

Open
taltoris opened this issue Oct 17, 2024 · 1 comment
Open

[ISSUE] Docker Installation issue #653

taltoris opened this issue Oct 17, 2024 · 1 comment

Comments

@taltoris
Copy link

Describe your issue

Seems like the instructions are more for non-docker users.

docker compose build
docker compose up -d

Then I go to my local ip: 192.XXX.XX.X
It says it can't connect to the server.

My Inspect pallette in my browser tells me that the problem is because of something called "The Same Origin Policy"

Some digging on Github/forums tells me that this happens when the request-IP is not on the whitelist for CORs. So I updated. I tried a couple of times and then eventually gave up and put the wildcard as the last option just to get something.

29 CORS(app, resources={r"/": {"origins": # Change the origin to your frontend URL
30 [
31 "https://localhost:3000",
32 "http://192.XXX.XX.XX:3000",
33 "https://192.XXX.XX.XX:3000",
34 "http://localhost:3000",
35 "https://sub.mydomain.com/",
36 "http://192.XXX.XX.XX:1337",
37 "https://192.XXX.XX.XX:1337",
38 "
"
39 ]}})

Still not working. Now I'm getting errors for trying to reach the front end.
Now it says: The Same Origin Policy disallows reading the remote resource at http://127.0.0.1:1337/api/data.

How To Reproduce

Steps to reproduce the behavior (example):

  1. clone
  2. build
  3. docker compose up

Expected behavior

A clear and concise description of what you expected to happen.

Configuration

  • OS: Linux: Ubuntu 22.04
@taltoris
Copy link
Author

I should clarify that I am attempting to install it on my home-server and then access it from my home-desktop. That seems important.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant