Documentation / MathType

  • Demos
  • Visit our website
  • Downloads
  • Contact us
  • MathType

    • Wiris Quizzes

      • Learning Lemur

        • CalcMe

          • MathPlayer

            • Store FAQ

              • VPAT for the electronic documentation

                • MathFlow

                  • BF FAQ

                    • Miscellaneous

                      • Wiris Integrations

                        • Home
                        • MathType
                        • MathType Integrations
                        • MathType web interface features
                        • MathType web interface features

                        Cross-domain

                        Reading time: 1min

                        Introduction

                        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.js in <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>.js and set
                        _wrs_int_conf_file="<protocol>://<server-dynamic>:<port>/<plugin-path>/configurationjs.<aspx|php>".

                        Java

                        • Change the src of WIRISplugins.js in <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>.js and set
                        _wrs_int_conf_file="<protocol>://<server-dynamic>:<port>/<pluginwiris_engine-path>/app/configurationjs"
                        
                        • Open wirisplugin-engine.jar inside pluginwiris_engine/WEB-INF/lib and change the value of this.javaServicePath in WIRISplugins.js for
                        <protocol>://<server-dynamic>:<port>/<pluginwiris_engine-path>/app/

                        Enable CORS

                        1. Add wiriscorsenabled=true in your server-dynamic's configuration.ini file.
                        2. 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.ini file.
                          • Add the servers you need in ''corsservers.ini'' (one per line) using this format:
                        <protocol>://<server>:<port>

                        Was this article helpful?

                        Yes
                        No
                        Give feedback about this article

                        Related Articles

                        • Features list of MathType integrations
                        • Chemistry
                        • Handwritten input
                        • LaTeX support
                        • Accessibility

                        Cross-domain

                        Introduction Note Move integration directory .NET and PHP Java Enable CORS

                        Making people’s STEM work more meaningful

                        MathType

                        • MathType for Office Tools
                        • MathType for Mac
                        • MathType for Microsoft 365
                        • MathType for Google Workspace
                        • MathType for LMS
                        • MathType for XML Editors
                        • Arabic notation
                        • Our products accessibility
                        • MathType is online

                        WirisQuizzes

                        Learning Lemur

                        Solutions for Education

                        • Blackboard Learn
                        • Brightspace by D2L
                        • Canvas
                        • Google Classroom
                        • Moodle
                        • Schoology

                        Solutions for Publishing Houses

                        Solutions for Technical Writers

                        Solutions for Chemistry

                        Integrations

                        • HTML Editors
                        • MathType in WordPress

                        Pricing

                        Company

                        Careers

                        Blog

                        Contact Us

                        Buy Now

                        Plugin Downloads

                        © Wiris 2025

                        • Cookie Settings
                        • Cookie Policy
                        • Terms of Use
                        • Privacy Policy / GDPR
                        • Student Data Privacy
                        • Compliance
                        • Powered by Helpjuice
                        Expand