Skip to content

Commit dc99039

Browse files
committed
Follow-up to make content viewable
1 parent 6deecd7 commit dc99039

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

src/main/java/io/projectreactor/ApplicationUtils.java

+8-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2020-2021 VMware Inc. or its affiliates, All Rights Reserved.
2+
* Copyright (c) 2020-2024 VMware Inc. or its affiliates, All Rights Reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -59,8 +59,13 @@ static HttpHeaders filterRepoProxyResponseHeaders(HttpHeaders headers) {
5959
while (it.hasNext()) {
6060
current = it.next();
6161
String key = current.getKey();
62-
if (key.startsWith("X-Artifactory") || key.equalsIgnoreCase("X-Node") || key.equalsIgnoreCase(
63-
"Content-Disposition")) {
62+
if (key.toLowerCase().startsWith("x-artifactory")
63+
|| key.equalsIgnoreCase("Content-Security-Policy")
64+
|| key.equalsIgnoreCase("X-Content-Security-Policy")
65+
|| key.equalsIgnoreCase("X-Content-TypeOptions")
66+
|| key.equalsIgnoreCase("X-Node")
67+
|| key.equalsIgnoreCase("Content-Disposition")
68+
|| key.equalsIgnoreCase("x-frame-options")) {
6469
headers.remove(key);
6570
}
6671
}

0 commit comments

Comments
 (0)