The TinyMCE Cross-Origin Resource Sharing guide
Cross-Origin Resource Sharing related options
referrer_policy
Used for setting the level of referrer information sent when loading plugins and CSS. Referrer policies can be used to:
-
Improve the privacy of end-users.
-
Assist with server-side filtering of cross-origin requests for TinyMCE resources.
Type: String
For a list of valid referrer policies (directives), see: MDN Web Docs - Referrer-Policy.
content_css_cors
When content_css_cors
is set to true
, the editor will add a crossorigin="anonymous"
attribute to the link tags that the StyleSheetLoader uses when loading the content_css
. This allows you to host the content_css
on a different server than the editor itself.
Type: Boolean
Default value: false
Possible values: true
, false
editimage_cors_hosts
The Image Editing plugin cannot work with images from another domain due to security measures imposed by browsers on so called cross-origin HTTP requests. To overcome these constraints, Cross-Origin Resource Sharing (CORS) must be explicitly enabled on the specified domain(s) (for more information check HTTP access control).
An array of supported domains for the images (with CORS enabled on them) can be supplied to TinyMCE via the editimage_cors_hosts
option.
Each string in the array must be in the format of example.com . Do not include protocols (for example, http://, https:// ) or any trailing slashes in your domains.
|
editimage_cors_hosts is not required when enabling this plugin via Tiny Cloud.
|
Type: Array
Default value: []
export_cors_hosts
The Export plugin cannot work with images from another domain due to security measures imposed by browsers on so called cross-origin HTTP requests. To overcome these constraints, Cross-Origin Resource Sharing (CORS) must be explicitly enabled on the specified domain(s) (for more information check HTTP access control).
An array of supported domains for the images (with CORS enabled on them) can be supplied to TinyMCE via the export_cors_hosts
option.
Each string in the array must be in the format of example.com . Do not include protocols (for example, http://, https:// ) or any trailing slashes in your domains.
|
export_cors_hosts is not required when enabling this plugin via Tiny Cloud.
|
Type: Array
Default value: []