|Acrolinx Server||5.2, 5.3, 5.4, 5.5, 5.6, 2018.10|
|If you have an earlier server version, you can download an archived version of this article .|
To enable CORS on your Acrolinx Server, follow these steps:
Open your overlay of the core server properties file.
You'll find the overlay for the core server properties file in the following location:
Add the following property:
For example, if you host your web application at the address https://clever-docs.com , you would enter the property as follows:
cors.allowedOrigins=https://clever-docs.comHere are some further examples that depend on which application you're using:
Application CORS Property Chrome
Allow access from Acrolinx for Chrome. The ID belongs to the Acrolinx extension in Chrome and shouldn't change.
Allow access from any Firefox extension. Because of a limitation in Firefox that adds a unique ID to each user instance, we can't set it to only allow the Acrolinx extension.
Google Docs and Google Sheets Check your CORS Origin in the About dialog of your Sidebar. If you can't access the Sidebar you can use:
cors.allowedOrigins=*.googleusercontent.comto allow access from any Google extension.
Allow access from any Microsoft Edge extension. Because of a limitation in Microsoft Edge that adds a unique ID to each user instance, we can't set it to only allow the Acrolinx extension.
Allow access from Microsoft Office.
Office Online (Beta)
Allow access from Microsoft Office Online.
Allow access from any Safari extension. Because of a limitation in Safari that adds a unique ID to each user instance, we can't set it to only allow the Acrolinx extension.
Visual Studio Code
Although Acrolinx for Visual Studio Code doesn't require CORS, you need to addNote: This is only necessary if you’re using Acrolinx for Visual Studio Code 1.1.
nullto the CORS property for the integration to connect to your Core Platform.
Allow access from your local file system. Even though XMetaL isn't a web application, it uses Internet Explorer to load the Sidebar.
Note: You only need to enable CORS if you’re using Acrolinx for XMetaL 1.0.
If you'd like to add multiple origins, you can add them all to one CORS property and separate them with a comma. Here's what it might look like: cors.allowedOrigins=moz-extension://*,chrome-extension://pgenbnkcpmebbcoeeekefkmblmblppbj,file://127.0.0.1,https://sidebar-classic.acrolinx-cloud.com
If you're still having trouble logging in to your Acrolinx server from the Sidebar, try enabling CORS from any source. To do this, add the property as follows:
However, we recommend that you use this setting only for temporary testing. Allowing CORS from any source could make your server vulnerable to malicious activity.
- Save your changes and restart the core server.