Skip to content

Rename config option server.enableCORS to server.enableCORSProtection #6062

@cmayoracurzio

Description

@cmayoracurzio

Problem

The name of the config option server.enableCORS is confusing. As mentioned by @snehankekre in this forum post, the real behavior of this option makes it so that a better name would be server.enableCORSProtection.

Solution

Rename config option server.enableCORS to server.enableCORSProtection (and remember to update API Reference docs).

Additional context

This is even marked as "TODO" in the source code, but didn't have a GitHub issue opened until now 😅.


Community voting on feature requests enables the Streamlit team to understand which features are most important to our users.

If you'd like the Streamlit team to prioritize this feature request, please use the 👍 (thumbs up emoji) reaction in response to the initial post.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature:configRelated to `config.toml` and config optionsstatus:likelyWill probably implement but no timeline yettype:enhancementRequests for feature enhancements or new features

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions