Skip to content

feat(backend): rate limit auth and CORS for creator FE - #281

Open
idowuvictor wants to merge 3 commits into
Quid-proquo:mainfrom
idowuvictor:feat/be-creator-auth-cors
Open

feat(backend): rate limit auth and CORS for creator FE#281
idowuvictor wants to merge 3 commits into
Quid-proquo:mainfrom
idowuvictor:feat/be-creator-auth-cors

Conversation

@idowuvictor

Copy link
Copy Markdown

Description

This PR hardens the creator auth path by introducing rate limiting and CORS configuration for the frontend as requested in the issue.

Changes Made:

  • CORS Configuration: Enabled CORS dynamically via the CORS_ORIGINS environment variable in main.ts so the creator app can call the API safely in both local and production environments.
  • Auth Rate Limiting: Added @nestjs/throttler to rate-limit the SEP-10 challenge and verify endpoints within the auth module to prevent wide-open abuse.
  • Documentation: Updated the root README.md and backend/.env.example to document the setup for CORS_ORIGINS and NEXT_PUBLIC_API_URL.

Closes #271

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.

[BE] Harden creator auth path (rate limit + CORS for FE)

1 participant