Quantcast
Viewing all articles
Browse latest Browse all 1501

Force HTTPS in Spring Boot

It seems that setting server.ssl.enabled in an Spring Boot application forces all requests to use HTTPS. Also, from the documentation and other articles (like here), it seems that requiresSecure() is for forcing HTTPS. What's their relation and when should each one be used?

p.s. When I use server.ssl.enabled=true, it seems that HTTPS is enforced on all pages regardless of the fact that I have set requiresInsecure(). And, when server.ssl.enabled is not set, setting requiresSecure() didn't seem to have any effect.


Viewing all articles
Browse latest Browse all 1501

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>