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.
Note
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.
To enable CORS on your Acrolinx Platform, follow these steps:
-
Open the core server properties file.
-
Add the following property:
cors.allowedOrigins=[HOST_SERVER_ADDRESS]
For example, if you host your web application at the address https://demo-inc.com, you would enter the property as follows:
Example:
cors.allowedOrigins= https://demo-inc.com
Some applications require specific values. Below is a list of specific examples that depend on the application you're using:
*Included in the built-in default settings for Standard Stack instances.
-
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:
Example
cors.allowedOrigins=moz-extension://*,chrome-extension://pgenbnkcpmebbcoeeekefkmblmblppbj
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=*
Note
We recommend that you only use this setting for temporary testing. Allowing CORS from any source could make your server vulnerable to malicious activity.
-
Save your changes and restart the Acrolinx Platform.
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=
Be sure to specify a value for cors.allowedOrigins=
. If you leave this blank, Acrolinx will apply the built-in CORS settings by default.