Springboot App works fine on Localhost but Says 401 on server

Hey Wanna Share a Small issue.I have hosted my springboot application with jwt authentication on render.Every features work fine on localhost but on deployed server it says 401 unauthorized and also some methods are not working well.Same thing works well on localhost.What might be the issue?

Hi there,

We’ll need you to provide more details than this to help. What have you tried to debug this? Have you checked that cookies are set on your browser and aren’t being rejected? Have you done any debugging to ensure your service works as expected on the backend?

The only Render reason why this may not work is if you are running on your front and backends on different onrender.com domains. This is because onrender.com is on the public suffix list, so your two services will not share cookies.

Regards,

Keith
Render Support, UTC+10 :australia:

Actually Iam trying this via Postman but its not Working.Some Apis dont works says 401 unauthorized wheres some arent working properly and not providing actual results.

HI there,

Please open a ticket directly with us using the “Contact Support” link on our dashboard.

Regards,

Keith
Render Support, UTC+10 :australia:

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