Skip to content

Commit

Permalink
Allow the admin endpoint to have HSTS header
Browse files Browse the repository at this point in the history
And took change note changes from @johngmyers

Co-authored-by: John Gardiner Myers <jgmyers@proofpoint.com>
  • Loading branch information
tomatproof and johngmyers committed Mar 8, 2024
1 parent cc527e0 commit a29155a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
Platform 3.18

* Jaxrs

- When HSTS headers are enabled (by configuring "jaxrs.hsts.max-age"), we now attach the
Strict-Transport-Security header to responses from admin endpoints as well.

Platform 3.17

* Library Upgrades
Expand Down
1 change: 1 addition & 0 deletions jaxrs/src/main/java/com/proofpoint/jaxrs/JaxrsModule.java
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ public void setup(Binder binder)
jaxrsBinder(binder).bind(LivenessResource.class);
jaxrsBinder(binder).bind(HstsResponseFilter.class);

jaxrsBinder(binder).bindAdmin(HstsResponseFilter.class);
jaxrsBinder(binder).bindAdmin(OpenApiResource.class);
jaxrsBinder(binder).bindAdmin(OpenApiAdminResource.class);

Expand Down

0 comments on commit a29155a

Please sign in to comment.