-
Hello, I'm having some issues getting plant-it to work with a Cloudflare tunnel. I'm doing this so that I can access the app from outside my network. When I run it locally, I have no issues. (I have the frontend port configured correctly. My configuration (using placeholder names):
When I launch from plants.domain.com, it can't reach the page. Any guidance would be appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 23 replies
-
Hi @cbarond, thanks for opening the issue! If I understand correctly, you're facing connectivity issues outside your network for both the frontend and backend, is that correct? It seems odd that you're unable to connect to the frontend, as there shouldn't be any access restrictions. Unlike the backend, which has the As a quick test, could you try accessing the authentication page directly at |
Beta Was this translation helpful? Give feedback.
-
cbarond Did you finally get to work with Cloudflare? TIA |
Beta Was this translation helpful? Give feedback.
-
I was hoping it was something else. I followed your example of adding.
in Cloudflare, but it still can't reach plantplantitapi.domain.com/api. I can get to plantit.domain.com frontend Even tried setting SSL_Enabled=true and false in backend. I see this in the developer console... Access to XMLHttpRequest at 'https://plantit.domain.com/api/info/ping' from origin 'http://192.168.1.120:3009' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Going to try and track this down. Thanks |
Beta Was this translation helpful? Give feedback.
-
ALLOWED_ORIGINS=* |
Beta Was this translation helpful? Give feedback.
-
In the browser, I have tried going to https://plantit.domain.com/auth But I still get this. "Cannot connect to the backend at https://plantitapi.domain.com/api" Access to fetch at 'https://plantitapi.domain.com/api/info/ping' from origin 'https://plantit.domain.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled. If I try this URL in the browser, https://plantitapi.domain.com/auth , I get a cant find page as expected, as my tunnels are configured like so 192.168.1.120:3009 > https://plantit.domain.com" I think I am going to concede here and just use it internally. Maybe this can be addressed in the future. |
Beta Was this translation helpful? Give feedback.
Thank you!
For anyone who may find this discussion:
I believe the main issue was accidentally using HTTP instead of HTTPS for the API_URL. Also, have patience; some changes may take time to propagate.