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

diable CORS security? #49

Open
EtainLove opened this issue Aug 21, 2024 · 4 comments
Open

diable CORS security? #49

EtainLove opened this issue Aug 21, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@EtainLove
Copy link

is there any way to disable CORS security?
I could not find any options in the source code.

@PeterOsinski
Copy link
Contributor

Hi, currently there is no way to add CORS headers. May I ask about your use case, what is the setup so that the UI address is different than the backend?

@EtainLove
Copy link
Author

I have my own frontend to show log messages from PM2. For that I need to connect to ws://localhost:8080. So there is the CORS issue. Did I miss something to use alternative frontend to bypass the CORS issue?

I could do bypass the CORS issue by modifying the logdy-core of v.0.10.0, but could not for v0.13.0 version.

FYI, my frontend is Flutter web and need to parse log messages.

@PeterOsinski
Copy link
Contributor

Would adding a Access-Control-Allow-Origin with a specific value work? For example

logdy --cors-origin=http://abc.com

@EtainLove
Copy link
Author

that would work. If possible, multiple origins or allowing all origins would be better.

@PeterOsinski PeterOsinski added the enhancement New feature or request label Dec 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants