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

Blocked by CORS Policy #5

Closed
TekExplorer opened this issue Jul 12, 2020 · 7 comments
Closed

Blocked by CORS Policy #5

TekExplorer opened this issue Jul 12, 2020 · 7 comments

Comments

@TekExplorer
Copy link
Contributor

TekExplorer commented Jul 12, 2020

87237092-c042e200-c3bf-11ea-8450-486901ff4fb1

the person im helping got this. what needs to be changed to fix this?

i somehow got it working on my system, so if you want to see my toml ill give it. its kinda over-complicated though

edited to remove domain
deleted edits to erase domain further

@EdyTheCow
Copy link
Owner

@TekExplorer
Copy link
Contributor Author

its in there: HASTEBIN

@TekExplorer
Copy link
Contributor Author

TekExplorer commented Jul 12, 2020

i believe i fixed it by using accessControlAllowOriginList instead of accessControlAllowOrigin
not sure why, but it fixed mine when i was troubleshooting before (hurts my brain remembering it)

and i have https:// appended to my domain in it

talking about my setup here

many edits for clarification and formatting

@EdyTheCow
Copy link
Owner

I've used current setup multiple times now when installing the panel and I didn't face the issue you described above.

@TekExplorer
Copy link
Contributor Author

Odd, I will have him check other things first before testing my solution... Hopefully we just missed something :)

@TekExplorer
Copy link
Contributor Author

Forgot to mention, turning on cloudflare proxy fixed it for him.

@Likqez
Copy link

Likqez commented Mar 19, 2023

Solved the issue with the help of this project found in this issue.

./game-servers/wings/data/wings/etc/config.yml :
This file is a little weird, when you get the Panel up and running and create the location then the node, it generates a config for you which you're intended to paste into this file, when you first start panel (if everything works) it will fill in the rest of the file for you. That being said there was a few thigns I had to manually configure to get everything working.
At the bottom there is these two settings
allowed_origins:
- https://panel.example.com/
- https://172.30.0.1/16
allow_cors_private_network: true

After I pasted the configuration from the panel, and added

allowed_origins:
- https://dev-panel.pluginstube.dev
allow_cors_private_network: true

and restarted wings. It all worked.

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

3 participants