Skip to content

CORS: add Vary: Origin when the answer depends on the origin, warn on '*' with credentials, add an origin matcher - #1612

Merged
thboileau-git merged 1 commit into
2.6from
fix/cors-2.6
Oct 31, 2026
Merged

thboileau-git merged 1 commit into
2.6from
fix/cors-2.6

CORS: add Vary: Origin when the answer depends on the origin, warn on…

dea9464
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis succeeded Oct 31, 2026 in 1m 1s

Annotations

Check warning on line 30 in org.restlet.java/org.restlet/src/test/java/org/restlet/engine/application/CorsResponseFilterTestCase.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove redundant visibility modifiers from the methods of this test class.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AaGS8jbNMRLCRryoBn1f&open=AaGS8jbNMRLCRryoBn1f&pullRequest=1612

Check failure on line 38 in org.restlet.java/org.restlet/src/test/java/org/restlet/engine/application/CorsResponseFilterTestCase.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Add a nested comment explaining why this method is empty, throw an UnsupportedOperationException or complete the implementation.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AaGS8jbNMRLCRryoBn1h&open=AaGS8jbNMRLCRryoBn1h&pullRequest=1612

Check failure on line 36 in org.restlet.java/org.restlet/src/test/java/org/restlet/engine/application/CorsResponseFilterTestCase.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Add a nested comment explaining why this method is empty, throw an UnsupportedOperationException or complete the implementation.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AaGS8jbNMRLCRryoBn1g&open=AaGS8jbNMRLCRryoBn1g&pullRequest=1612

Check warning on line 106 in org.restlet.java/org.restlet/src/main/java/org/restlet/engine/application/CorsResponseHelper.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use the built-in formatting to construct this argument.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AaGS8jVeMRLCRryoBn1d&open=AaGS8jVeMRLCRryoBn1d&pullRequest=1612

Check failure on line 83 in org.restlet.java/org.restlet/src/main/java/org/restlet/engine/application/CorsResponseHelper.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this method to reduce its Cognitive Complexity from 29 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AaGS8jVeMRLCRryoBn1e&open=AaGS8jVeMRLCRryoBn1e&pullRequest=1612

Check warning on line 42 in org.restlet.java/org.restlet/src/test/java/org/restlet/engine/application/CorsResponseFilterTestCase.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove the declaration of thrown exception 'java.lang.Exception', as it cannot be thrown from method's body.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AaGS8jbNMRLCRryoBn1i&open=AaGS8jbNMRLCRryoBn1i&pullRequest=1612