Skip to content

Add CORS middleware for quotes.cmon1975.com frontend #1

Description

@CMON1975

The API currently rejects cross-origin requests. The frontend at quotes.cmon1975.com cannot call the API from a browser until CORS headers are configured.

Add tower-http CORS layer to the router in routes.rs, restricting allowed origins to https://quotes.cmon1975.com in production and http://localhost:* in development. Origin should be configurable via .env.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions