Skip to content

Cannot set TEMPORAL_CORS_ORIGINS to wildcard in docker #1500

@sourcec0de

Description

@sourcec0de

Describe the bug
The default CORS origin is *, which is overridden in the docker-setup template.

- {{ default .Env.TEMPORAL_CORS_ORIGINS "http://localhost:8080" }}

To Reproduce
Steps to reproduce the behavior:
Set TEMPORAL_CORS_ORIGINS=* in docker environment variable.

Expected behavior
The application should start.

Additional context
This validation error shows up in the logs.

config file corrupted: yaml: line 24: did not find expected alphabetic or numeric character

I would propose either setting the default to * here or update the validation logic to allow *

- {{ default .Env.TEMPORAL_CORS_ORIGINS "http://localhost:8080" }}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions