Skip to main content
1-Visitor
February 7, 2019
Solved

CORS configuration on hosted Trial Thingworx Server

  • February 7, 2019
  • 1 reply
  • 1593 views

Hello everyone,

I'm doing first steps with Thingworx Trial on a hosted server.

Now I'm trying to get some data over the REST API from my webapplication (JavaScript). And here I'm facing the regular problem with cross-site because the CORS is not configured.

How can I activate / configure CORS on a hosted server? For regular installation with access to the filesystem I could do it with ease, since it is well documented (e.g. https://community.ptc.com/t5/IoT-Tech-Tips/Make-a-REST-call-from-a-website-to-Thingworx-platform/m-p/534384).

But can it be done also with the hosted trial server? 

 

Best regards

Alex

Best answer by tmisner

Hello Alex,

 

Thank you for visiting the ThingWorx Developer Community.

 

After looking into this internally it would seem that you will need to reach out to Axeda Support who will enable CORS on your behalf.

 

Please open a ticket with Axeda Support by visiting the Case Logger available on the PTC Support Portal. In this request please inform Axeda Support that you are looking to enable CORS and provide the domain(s) that will be explicitly allowed in the Apache headers.

 

Regards,

Tyler Misner

ThingWorx Technical Support Engineer

1 reply

tmisner16-PearlAnswer
16-Pearl
February 7, 2019

Hello Alex,

 

Thank you for visiting the ThingWorx Developer Community.

 

After looking into this internally it would seem that you will need to reach out to Axeda Support who will enable CORS on your behalf.

 

Please open a ticket with Axeda Support by visiting the Case Logger available on the PTC Support Portal. In this request please inform Axeda Support that you are looking to enable CORS and provide the domain(s) that will be explicitly allowed in the Apache headers.

 

Regards,

Tyler Misner

ThingWorx Technical Support Engineer

AlexH1-VisitorAuthor
1-Visitor
February 8, 2019

Hello Tyler,

thank you for your reply!

Since I'm running a Trial I don't have any permissions in the Case Logger until I have a t least a customer number.

I'll try my luck with our local presales partner of PTC.

 

Best regards!

Alex