Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide a configuration property for endpoints' CORS origin patterns #24608

Closed
wants to merge 1 commit into from

Conversation

pedivo
Copy link

@pedivo pedivo commented Dec 23, 2020

When the CorsConfiguration is configured to allow credentials you cannot use wildcards on the allowedOrigins attribute.
The CorsConfiguration itself asks to use the allowedOriginPatterns when do you want to use wildcards and allow credentials at the same time.

However, there isn't a way to configure the allowedOriginPatterns on the CorsEndpointProperties.

I've just added the possibility to configure the allowedOriginPatterns on the CorsEndpointProperties.

@pivotal-issuemaster
Copy link

@pedivo Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Dec 23, 2020
@pivotal-issuemaster
Copy link

@pedivo Thank you for signing the Contributor License Agreement!

@philwebb philwebb added type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged labels Jan 4, 2021
@philwebb philwebb added this to the 2.5.x milestone Jan 4, 2021
@wilkinsona wilkinsona changed the title Add autoconfiguration for cors origin patterns Provide a configuration property for endpoints' CORS origin patterns Jan 19, 2021
@wilkinsona wilkinsona self-assigned this Jan 19, 2021
@wilkinsona wilkinsona modified the milestones: 2.5.x, 2.5.0-M1 Jan 19, 2021
@wilkinsona
Copy link
Member

Closed by 847bb62 (unfortunately, I typo'd the issue reference).

@pedivo Thanks very much for making your first contribution to Spring Boot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants