You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Current »

Problem

You configured a direct connection of WProofreader with AppServer (as described Option A: Binding of Static Files and Serving Service Requests by AppServer) on the server with Apache Tomcat. Your application and WProofreader static files are located in different domains, for example, domain_name1.com and domain_name2.com and there is a CORS error in the console.  

Below is an example of such an error:

Access to font at 'http://domain_name1/wscservice/wscbundle/themes/fonts/opensans_bold/.../font_name.ttf' from origin 'http://domain_name2/' has been blocked  by CORS policy: No 'Access-Control-Allow-Origin' header is present on the request resource.

Solution

To solve this issue, add the Access-Control-Allow-Headers to enable cross-origin requests to the Apache Tomcat settings. 

  1. For detailed instructions, refer to the CORS filter description. Note that the description varies depending on the Apache Tomcat version used.



  • No labels