Skip to content

feature request: Fully support wildcards in EXTRA_CORS_ALLOWED_ORIGINS #12992

@marten-wirelab

Description

@marten-wirelab

Is there an existing issue for this?

  • I have searched the existing issues

Feature description

We're running Localstack inside our development environments, which runs the main container behind a reverse proxy on a custom domain. This works pretty well for what I've been working on until now, but as I attempted to deploy a Next.js app on Fargate behind an ALB, but without CloudFront, I keep getting CORS errors. The app is reachable on something like lb-12345678.elb.localstack.project-domain.dev. The problem is that I cannot add this domain to the EXTRA_CORS_ALLOWED_ORIGINS list as it changes whenever I restart LocalStack and redeploy the app, and EXTRA_CORS_ALLOWED_ORIGINS currently does not support wildcards at all. At this time, my only option seems to be to set DISABLE_CORS_CHECKS=1, but I'd prefer not to do that.

🧑‍💻 Implementation

No response

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: networkingNetwork aspects of LocalStackstatus: backlogTriaged but not yet being worked ontype: featureNew feature, or improvement to an existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions