Skip to content

Commit

Permalink
Follow-up to make content viewable
Browse files Browse the repository at this point in the history
  • Loading branch information
chemicL committed Nov 12, 2024
1 parent 6deecd7 commit dc99039
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/main/java/io/projectreactor/ApplicationUtils.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2020-2021 VMware Inc. or its affiliates, All Rights Reserved.
* Copyright (c) 2020-2024 VMware Inc. or its affiliates, All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -59,8 +59,13 @@ static HttpHeaders filterRepoProxyResponseHeaders(HttpHeaders headers) {
while (it.hasNext()) {
current = it.next();
String key = current.getKey();
if (key.startsWith("X-Artifactory") || key.equalsIgnoreCase("X-Node") || key.equalsIgnoreCase(
"Content-Disposition")) {
if (key.toLowerCase().startsWith("x-artifactory")
|| key.equalsIgnoreCase("Content-Security-Policy")
|| key.equalsIgnoreCase("X-Content-Security-Policy")
|| key.equalsIgnoreCase("X-Content-TypeOptions")
|| key.equalsIgnoreCase("X-Node")
|| key.equalsIgnoreCase("Content-Disposition")
|| key.equalsIgnoreCase("x-frame-options")) {
headers.remove(key);
}
}
Expand Down

0 comments on commit dc99039

Please sign in to comment.