Could someone please tell me how to redirect http to https on payara 5
I tried below code on both web.xml at app level and default-web.xml at domain level yet it's not redirecting.
<security-constraint>
<web-resource-collection>
<web-resource-name>Viewpoint Secure URLs</web-resource-name>
<url-pattern>/*</url-pattern>
</web-resource-collection>
<user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</security-constraint>