Open EtainLove opened 2 months ago
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?
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.
Would adding a Access-Control-Allow-Origin
with a specific value work? For example
logdy --cors-origin=http://abc.com
that would work. If possible, multiple origins or allowing all origins would be better.
is there any way to disable CORS security? I could not find any options in the source code.