Skip to content

docs: Fix global CORS configuration property path#4118

Merged
ryanjbaxter merged 1 commit intospring-cloud:mainfrom
Tarte12:docs/fix-cors-config-properties
Mar 31, 2026
Merged

docs: Fix global CORS configuration property path#4118
ryanjbaxter merged 1 commit intospring-cloud:mainfrom
Tarte12:docs/fix-cors-config-properties

Conversation

@Tarte12
Copy link
Copy Markdown
Contributor

@Tarte12 Tarte12 commented Mar 28, 2026

Problem

The global CORS configuration documentation uses the old property path:

spring:
  cloud:
    gateway:
      globalcors:

But since commit eca63cb, the correct path is:

spring:
  cloud:
    gateway:
      server:
        webflux:
          globalcors:

This is confirmed by GlobalCorsProperties using GatewayProperties.PREFIX + ".globalcors", where PREFIX = "spring.cloud.gateway.server.webflux".

Closes #4103

Changes

  • Fixed the YAML example for global CORS configuration
  • Fixed the inline property reference for add-to-simple-url-handler-mapping

The JSONToGRPC GatewayFilter Factory converts a JSON payload to a gRPC request.

[[jsontogrpc-dependencies]]
== Required Dependencies
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This does not seem relevant to the issue

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed the unrelated JsonToGrpc docs change from PR #4118. This PR now only contains the CORS
property path fix for issue #4103.

The globalcors configuration properties were documented under the
old path spring.cloud.gateway.globalcors, but were moved to
spring.cloud.gateway.server.webflux.globalcors in a prior refactor.

Updated both the YAML example and the inline property reference
in the prose to use the correct path.

Fixes spring-cloudgh-4103

Signed-off-by: Tarte <emprimula@gmail.com>
@Tarte12 Tarte12 force-pushed the docs/fix-cors-config-properties branch from bd99e26 to 3f520cc Compare March 31, 2026 06:49
@ryanjbaxter ryanjbaxter merged commit 9c38aad into spring-cloud:main Mar 31, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Spring Cloud Gateway docs contain wrong configuration properties

3 participants