Do not mention credentials as enabled by default in CorsRegistry

Credentials are not enabled by default contrary to the javadocs. 
The credentials support must be enabled via #allowCredentials.

Closes gh-24691

Co-authored-by: Martin Dindoffer <martin.dindoffer@sigp.eu>
This commit is contained in:
mdindoffer
2020-03-13 15:21:53 +01:00
committed by GitHub
parent c5b8406def
commit c11dd4a839

View File

@@ -42,9 +42,8 @@ public class CorsRegistry {
*
* <p>Exact path mapping URIs (such as {@code "/admin"}) are supported as
* well as Ant-style path patterns (such as {@code "/admin/**"}).
* <p>By default, all origins, all headers, credentials and {@code GET},
* {@code HEAD}, and {@code POST} methods are allowed, and the max age
* is set to 30 minutes.
* <p>By default, all origins, all headers and {@code GET}, {@code HEAD},
* and {@code POST} methods are allowed, and the max age is set to 30 minutes.
*
* <p>The following defaults are applied to the {@link CorsRegistration}:
* <ul>