[en] If your writers use a web application like Google Docs, it might be necessary to enable Cross-Origin Resource Sharing (CORS). You enable CORS so that your Acrolinx Platform and the web application server can share resources. If you're a Standard Stack user, you can do this by adding a property to your configuration file.
Anmerkung
[en] If you're using Standard Stack for the first time, the built-in default CORS settings are active if you don't add your own settings to the overlay. These built-in settings let you connect to the following integrations: Firefox, Chrome, Microsoft Office, and XMetaL.
[en] To enable CORS on your Acrolinx Platform, follow these steps:
-
[en] Open the core server properties file.
-
[en] Add the following property:
cors.allowedOrigins=[HOST_SERVER_ADDRESS]
[en] For example, if you host your web application at the address https://demo-inc.com, you would enter the property as follows:
[en] Example:
cors.allowedOrigins= https://demo-inc.com
[en] Some applications require specific values. Below is a list of specific examples that depend on the application you're using:
[en] *Included in the built-in default settings for Standard Stack instances.
-
[en] If you'd like to add multiple origins, you can add all of them to one CORS property and separate them with a comma. Here's an example of how to add multiple origins to allow Firefox and Chrome at the same time:
[en] Example
cors.allowedOrigins=moz-extension://*,chrome-extension://pgenbnkcpmebbcoeeekefkmblmblppbj
[en] If you're still having trouble signing in to Acrolinx from the Sidebar, try enabling CORS from any source. To do this, add the property as follows:
cors.allowedOrigins=*
Anmerkung
[en] We recommend that you only use this setting for temporary testing. Allowing CORS from any source could make your server vulnerable to malicious activity.
-
[en] Save your changes and restart the Acrolinx Platform.
[en] If you want to limit access to your API endpoints, you can disable all of your CORS settings. To do so, set the property cors.allowedOrigins=
to no value in your coreserver.properties
file. For example:
cors.allowedOrigins=
[en] Be sure to specify a value for cors.allowedOrigins=
. If you leave this blank, Acrolinx will apply the built-in CORS settings by default.