Skip to main content
Jul 31, 2019 11:24 AM UTC
Solved

CORS error while connecting Thingworx REST API to HTTP request- JavaScript XHR Vue.JS

I have already configure my Tomcat serve for CORS still i am not able to access my api and i am getting " Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource."  

When i am trying to access the API using Postman i am getting 403 error.

For reference please check attached images. 

 

shubhammAnswer
Aug 28, 2019 4:41 AM UTC

hii Sharon,

 we have followed  https://www.ptc.com/en/support/article/CS229450  article that resolved our issue. 

Thanks and Regards,

Shubham 

10 replies

Jul 31, 2019 7:34 PM UTC

Hi @shubhamm.

 

Have you made any changes to filter for CORS based on any documentation PTC provides?  If so, please provide specifics on the changes that were made.

 

What versions of Tomcat/ThingWorx are you running?

 

Here is an article that may help depending on the ThingWorx version you're running.

 

Regards.

 

--Sharon

shubhammAuthor
Aug 1, 2019 5:34 AM UTC

Tomcat 8.5.32

Thinworx 8.3