SpringBoot Cloudflare 403 error

Hello. My app https://doctr-backend.onrender.com is deployed and started, but I can`t reach any REST endpoint receiving 403 error as below:

HTTP/1.1 403 Forbidden
Date: Sun, 18 Sep 2022 14:29:55 GMT
Content-Type: text/html; charset=UTF-8
Transfer-Encoding: chunked
Connection: keep-alive
Cache-Control: max-age=15
Expires: Sun, 18 Sep 2022 14:30:10 GMT
X-Frame-Options: SAMEORIGIN
Vary: Accept-Encoding
Server: cloudflare
CF-RAY: 74cac6ccb8fe695e-FRA
alt-svc: h3=“:443”; ma=86400, h3-29=“:443”; ma=86400

An error code as specific as a 403 will more than likely be originating from your deployed service - it would be worth reviewing your service logs to see what the cause of it is there

John B

Logs said nothing. But seems I found the issue: I was adding port (:8080) to the REST URL but seems it`s not necessary. Removing the port from REST call solved the problem.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.