File tree 1 file changed +8
-3
lines changed
src/main/java/io/projectreactor
1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 1
1
/*
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.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -59,8 +59,13 @@ static HttpHeaders filterRepoProxyResponseHeaders(HttpHeaders headers) {
59
59
while (it .hasNext ()) {
60
60
current = it .next ();
61
61
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" )) {
64
69
headers .remove (key );
65
70
}
66
71
}
You can’t perform that action at this time.
0 commit comments