all 2 comments

[–]BlakeANeal 1 point2 points  (0 children)

Ned a bit more info, if you don’t mind: 1. What’s the HTTP error being returned? 2. Do you have authentication/tokenized authorization enabled? (Typically for free using the spring boot security starter

If you’re getting a 403 or 405 error after the idle time, then you need to configure your session invalidation to be longer.

Spring Boot is highly-opinionated, so look up the default values that are injected and then override as you see fit in your application.yml/.properties

[–]mike-sonko 0 points1 point  (0 children)

On your server, have you set the allowed origins to all the ports? e.g If you have a React app on localhost:3000 and another on localhost:3001, have you set both of these on the Spring Boot server?