Skip to content

feat: add CORS configuration for frontend development#22

Open
tingnuanx wants to merge 1 commit into
lechan775:masterfrom
tingnuanx:feat/cors-config
Open

feat: add CORS configuration for frontend development#22
tingnuanx wants to merge 1 commit into
lechan775:masterfrom
tingnuanx:feat/cors-config

Conversation

@tingnuanx
Copy link
Copy Markdown
Collaborator

  • Add CorsConfig allowing cross-origin requests from DevEco Studio emulator
  • Configure /api/** endpoints with common HTTP methods
  • Use allowedOriginPatterns for credential support
  • Set maxAge to 3600s for preflight cache

Closes #14

- Add CorsConfig allowing cross-origin requests from DevEco Studio emulator
- Configure /api/** endpoints with common HTTP methods
- Use allowedOriginPatterns for credential support
- Set maxAge to 3600s for preflight cache

Closes lechan775#14

Co-authored-by: Jiang Guowei <109208869+lechan775@users.noreply.github.com>
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.

[Feature] Add CORS configuration for frontend dev

1 participant