Skip to content

[bug]: Environment variable CORS_ALLOWED_ORIGINS is not used #8390

Description

@XenGi

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

No matter what is set in the CORS_ALLOWED_ORIGINS variable, it seems that the application host is always used as the value. I tried setting "*" and got an appropriate error. I tried "" but the response header still hat the application host in it. I also tried a list with the two domains I need but still got only the application fqdn back.

I found the issue while figuring out another CORS issue which was related to missing CORS config on my S3 backend.

Steps to reproduce

  1. Set CORS_ALLOWED_ORIGINS to empty string or mutliple domains
  2. Try to upload an avatar
  3. Watch browser request to https://<my-plane-instance>/api/assets/v2/user-assets/ with access-control-allow-origin: https://<my-plane-instance>/ with the other URI missing

Environment

Production

Browser

Google Chrome

Variant

Self-hosted

Version

v1.2.1

Activity

  1. added
    🐛bug
    plane
    on Dec 18, 2025
  2. makeplane commented on Dec 18, 2025

    @makeplane
  3. XenGi commented on Dec 19, 2025

    @XenGi
    Author

    I updated to v1.2.1 but the issue is still there.

  4. robigan commented on Sep 2, 2026

    @robigan

    still having this issue with my s3-compatible storage being on another fqdn

  5. marked [bug]: Problem with CORS #5275 as a duplicate of this issue on Sep 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

plane🐛bug

Type

Fields

Edition

None yet

Version

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions