Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarified supported AllowCorsFrom values #6897

Merged
merged 1 commit into from
Feb 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions source/configure/integrations-configuration-settings.rst
Original file line number Diff line number Diff line change
Expand Up @@ -309,15 +309,21 @@ Access the following configuration settings in the System Console by going to **
:systemconsole: Integrations > CORS
:configjson: .ServiceSettings.AllowCorsFrom
:environment: MM_SERVICESETTINGS_ALLOWCORSFROM
:description: Enable HTTP cross-origin requests from specific domains separated by spaces. Type ``*`` to allow CORS from any domain or leave it blank to disable it.
:description: Enable HTTP cross-origin requests from all, none, or specific domains.

Enable cross-origin requests from
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Enable HTTP cross-origin requests from specific domains separated by spaces. Type ``*`` to allow CORS from any domain or leave it blank to disable it.
Enable HTTP cross-origin requests from specific domains.

- Type ``*`` to allow CORS from any domain.
- Enter a specific domain or multiple domains separated by spaces.
- Type ``null`` to prevent CORS from any domain.
- Leave blank to disable it and use the Mattermost **Site URL** instead.

.. note::
Please make sure you have entered your Site URL before enabling this setting to prevent losing access to the System Console after saving. If you experience lost access to the System Console after changing this setting, you can set your `Site URL <https://docs.mattermost.com/configure/configuration-settings.html#site-url>`__ through the ``config.json`` file.

Ensure you've entered your `Site URL </configure/environment-configuration-settings.html#site-url>`__ before enabling this setting to prevent losing access to the System Console after saving. If you lose access to the System Console after changing this setting, you can set your Site URL through the ``config.json`` file.

+--------------------------------------------------------------------------------------+
| This feature's ``config.json`` setting is ``"AllowCorsFrom": ""`` with string input. |
Expand Down
Loading