This is a PDF version of Article CS229450 and may be out of date. For the latest version click here
Article - CS229450
  3 Votes

How to Enable Cross-Origin Resource Sharing (CORS) in Apache Tomcat for ThingWorx Platform

Created: 12-Feb-2016   |   Modified: 28-Oct-2019   

Applies To

  • ThingWorx Platform 6.6 to 8.5
  • CORS (Cross-Origin Resource Sharing)

Description

  • How to make a request from another domain/website to ThingWorx application deployed in a different server?
  • How to Allow Cross-origin requests in ThingWorx?
  • Need to enable CORS on ThingWorx
  • Looking to configure Cross Origin Resource Sharing
  • Browser F12/Dev Tools shows the following:
    • XMLHttpRequest cannot load http://[THINGWORX_HOST] No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin '[ORIGIN]' is therefore not allowed access. The response had HTTP status code 401