fix: rename allowedOriginsPatterns to allowedOrigins in CORS configur…#36
Merged
jhonatapers merged 1 commit intodevelopfrom May 28, 2025
Merged
fix: rename allowedOriginsPatterns to allowedOrigins in CORS configur…#36jhonatapers merged 1 commit intodevelopfrom
jhonatapers merged 1 commit intodevelopfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request updates the CORS configuration in the
infrastructuremodule to simplify property naming and improve clarity. The most significant changes involve renamingallowedOriginsPatternstoallowedOriginsin theCorsConfigurationPropertiesclass and updating related methods and usages accordingly.CORS Configuration Updates:
Renamed property in
CorsConfigurationProperties:allowedOriginsPatternstoallowedOriginsfor better clarity and consistency. This includes updates to the property declaration, getter, and setter methods inCorsConfigurationProperties. ([[1]](https://github.com/CallVDois/drive-api/pull/36/files#diff-e83bcb29de835da42a10772c6a5fbe1150615504c4868a8f1a35af2e3741e7e9L8-R8),[[2]](https://github.com/CallVDois/drive-api/pull/36/files#diff-e83bcb29de835da42a10772c6a5fbe1150615504c4868a8f1a35af2e3741e7e9L21-R26))Updated usage in
SecurityConfig:corsConfigurationSourcemethod inSecurityConfigto usecorsProperties.getAllowedOrigins()instead ofcorsProperties.getAllowedOriginsPatterns(). ([infrastructure/src/main/java/com/callv2/drive/infrastructure/configuration/security/SecurityConfig.javaL67-R67](https://github.com/CallVDois/drive-api/pull/36/files#diff-3cb27b704bdcb86129bb28719f587cae9c240aa255e6f10e2c018e568938ba78L67-R67))