-
MathType
-
Wiris Quizzes
-
Learning Lemur
-
CalcMe
-
MathPlayer
-
Store FAQ
-
VPAT for the electronic documentation
-
MathFlow
-
BF FAQ
-
Miscellaneous
-
Wiris Integrations
Cross-domain
Reading time: 1minIntroduction
From version 3.53.2 it is possible to place the plugin's dynamic contents on a different server. To enable the communication between servers, you need to change the location of your integration dynamic contents directory (integration) and enable CORS in your configuration.ini file.
Note
Note: In the instructions below <server-static> will be the static content server and <server-dynamic> the dynamic content server.
Move integration directory
.NET and PHP
- Move the integration directory to
<server-dynamic>/<plugin-path>. - Move your configuration.ini file next to the integration directory on
<server-dynamic>: -
<server-dynamic>/<plugin-path>/integration<server-dynamic>/<plugin-path>/configuration.ini - Change the src of
WIRISplugins.jsin<server-static>to
<protocol>://<server-dynamic>:<port>/<plugin-path>/integration/WIRISplugins.js?viewer=image
- Add
wiriscontextpath="<protocol>://<server-dynamic>:<port>/<plugin-path>"
variable in your configuration.ini file.
- Edit
<server-static>/<plugin-path>/<plugin>.jsand set
_wrs_int_conf_file="<protocol>://<server-dynamic>:<port>/<plugin-path>/configurationjs.<aspx|php>".
Java
- Change the src of
WIRISplugins.jsin<server-static>to
"<protocol>://<server-dynamic>:<port>/<pluginwiris_engine-path>/app/WIRISplugins.js?viewer=image"
- Add
wiriscontextpath="<protocol>://<server-dynamic>:<port>/<pluginwiris_engine-path>"
in your configuration.ini file.
- Edit
<server-static>/<plugin-path>/<plugin>.jsand set
_wrs_int_conf_file="<protocol>://<server-dynamic>:<port>/<pluginwiris_engine-path>/app/configurationjs"
- Open
wirisplugin-engine.jarinsidepluginwiris_engine/WEB-INF/liband change the value ofthis.javaServicePathinWIRISplugins.jsfor
<protocol>://<server-dynamic>:<port>/<pluginwiris_engine-path>/app/
Enable CORS
- Add
wiriscorsenabled=truein your server-dynamic'sconfiguration.inifile. - If you need to enable CORS only for a group of servers you need to follow these additional steps too:
- Add a file called ''corsservers.ini'' at the same directory level of
configuration.inifile. - Add the servers you need in ''corsservers.ini'' (one per line) using this format:
- Add a file called ''corsservers.ini'' at the same directory level of
<protocol>://<server>:<port>