Skip to content

fix: rename allowedOriginsPatterns to allowedOrigins in CORS configur…#36

Merged
jhonatapers merged 1 commit intodevelopfrom
fix/cors
May 28, 2025
Merged

fix: rename allowedOriginsPatterns to allowedOrigins in CORS configur…#36
jhonatapers merged 1 commit intodevelopfrom
fix/cors

Conversation

@jhonatapers
Copy link
Copy Markdown
Member

This pull request updates the CORS configuration in the infrastructure module to simplify property naming and improve clarity. The most significant changes involve renaming allowedOriginsPatterns to allowedOrigins in the CorsConfigurationProperties class and updating related methods and usages accordingly.

CORS Configuration Updates:

  • Renamed property in CorsConfigurationProperties:

    • Changed allowedOriginsPatterns to allowedOrigins for better clarity and consistency. This includes updates to the property declaration, getter, and setter methods in CorsConfigurationProperties. ([[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:

    • Modified the corsConfigurationSource method in SecurityConfig to use corsProperties.getAllowedOrigins() instead of corsProperties.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))

@jhonatapers jhonatapers self-assigned this May 28, 2025
@jhonatapers jhonatapers added the bug Something isn't working label May 28, 2025
@jhonatapers jhonatapers merged commit a3cf684 into develop May 28, 2025
@github-project-automation github-project-automation Bot moved this to Done in CallV2 May 28, 2025
@jhonatapers jhonatapers deleted the fix/cors branch May 28, 2025 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant