2

I'd like to force use of https in Jetty 9. Apparently:

<Set name="confidentialPort">443</Set>

no longer works in jetty 9. How should I do it properly?

jimmy
  • 21
  • 3

1 Answers1

0

This resource says to add this to your web.xml

<web-app>
  ...
  <security-constraint>
    <web-resource-collection>
      <web-resource-name>Everything in the webapp</web-resource-name>
      <url-pattern>/*</url-pattern>
    </web-resource-collection>
    <user-data-constraint>
      <transport-guarantee>CONFIDENTIAL</transport-guarantee>
    </user-data-constraint>
  </security-constraint>
</web-app>
masegaloeh
  • 17,978
  • 9
  • 56
  • 104
Mafro34
  • 101
  • 3