<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: CORS error while connecting Thingworx REST API to HTTP request- JavaScript XHR Vue.JS in ThingWorx Developers</title>
    <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/CORS-error-while-connecting-Thingworx-REST-API-to-HTTP-request/m-p/624143#M38605</link>
    <description>&lt;P&gt;hii Sharon,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;we have followed&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;A href="https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.ptc.com%2Fen%2Fsupport%2Farticle%2FCS229450&amp;amp;data=02%7C01%7Cragrawal%40ptc.com%7Cab8759de55ea436f146408d72a15f09d%7Cb9921086ff774d0d828acb3381f678e2%7C0%7C0%7C637024146086992539&amp;amp;sdata=zz5ZioYMbwFlR0rUFAdXCVNCXjUPeSLO304Yh%2Bbi0MA%3D&amp;amp;reserved=0" target="_blank" rel="noopener"&gt;https://www.ptc.com/en/support/article/CS229450&lt;/A&gt;&amp;nbsp; article that resolved our issue.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks and Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Shubham&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 28 Aug 2019 04:41:07 GMT</pubDate>
    <dc:creator>shubhamm</dc:creator>
    <dc:date>2019-08-28T04:41:07Z</dc:date>
    <item>
      <title>CORS error while connecting Thingworx REST API to HTTP request- JavaScript XHR Vue.JS</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/CORS-error-while-connecting-Thingworx-REST-API-to-HTTP-request/m-p/620710#M37970</link>
      <description>&lt;P&gt;I have already configure my Tomcat serve for CORS still i am not able to access my api and i am getting &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;" Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource."&lt;/FONT&gt;&amp;nbsp;&lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When i am trying to access the API using Postman i am getting 403 error.&lt;/P&gt;
&lt;P&gt;For reference please check attached images.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2019 11:24:17 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/CORS-error-while-connecting-Thingworx-REST-API-to-HTTP-request/m-p/620710#M37970</guid>
      <dc:creator>shubhamm</dc:creator>
      <dc:date>2019-07-31T11:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: CORS error while connecting Thingworx REST API to HTTP request- JavaScript XHR Vue.JS</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/CORS-error-while-connecting-Thingworx-REST-API-to-HTTP-request/m-p/620816#M37994</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/304956"&gt;@shubhamm&lt;/a&gt;.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Have you made any changes to filter for CORS based on any documentation PTC provides?&amp;nbsp; If so, please provide specifics on the changes that were made.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;What versions of Tomcat/ThingWorx are you running?&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Here is an &lt;A href="https://www.ptc.com/en/support/article?n=CS229450" target="_blank"&gt;article&lt;/A&gt; that may help depending on the ThingWorx version you're running.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Regards.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;--Sharon&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2019 19:34:05 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/CORS-error-while-connecting-Thingworx-REST-API-to-HTTP-request/m-p/620816#M37994</guid>
      <dc:creator>slangley</dc:creator>
      <dc:date>2019-07-31T19:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: CORS error while connecting Thingworx REST API to HTTP request- JavaScript XHR Vue.JS</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/CORS-error-while-connecting-Thingworx-REST-API-to-HTTP-request/m-p/620859#M38004</link>
      <description>&lt;P&gt;Tomcat 8.5.32&lt;/P&gt;
&lt;P&gt;Thinworx 8.3&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2019 05:34:09 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/CORS-error-while-connecting-Thingworx-REST-API-to-HTTP-request/m-p/620859#M38004</guid>
      <dc:creator>shubhamm</dc:creator>
      <dc:date>2019-08-01T05:34:09Z</dc:date>
    </item>
    <item>
      <title>Re: CORS error while connecting Thingworx REST API to HTTP request- JavaScript XHR Vue.JS</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/CORS-error-while-connecting-Thingworx-REST-API-to-HTTP-request/m-p/621036#M38036</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/304956"&gt;@shubhamm&lt;/a&gt;.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Have you made any changes to filter for CORS based on any documentation PTC provides?&amp;nbsp; If so, please provide specifics on the changes.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Was the article I provided helpful?&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Regards.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;--Sharon&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2019 17:02:14 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/CORS-error-while-connecting-Thingworx-REST-API-to-HTTP-request/m-p/621036#M38036</guid>
      <dc:creator>slangley</dc:creator>
      <dc:date>2019-08-01T17:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: CORS error while connecting Thingworx REST API to HTTP request- JavaScript XHR Vue.JS</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/CORS-error-while-connecting-Thingworx-REST-API-to-HTTP-request/m-p/621094#M38046</link>
      <description>&lt;PRE&gt;&amp;lt;filter&amp;gt;
&amp;lt;filter-name&amp;gt;CorsFilter&amp;lt;/filter-name&amp;gt;
&amp;lt;filter-class&amp;gt;org.apache.catalina.filters.CorsFilter&amp;lt;/filter-class&amp;gt;
&amp;lt;init-param&amp;gt;
    &amp;lt;param-name&amp;gt;cors.allowed.origins&amp;lt;/param-name&amp;gt;
    &amp;lt;param-value&amp;gt;*&amp;lt;/param-value&amp;gt; 
&amp;lt;/init-param&amp;gt;
&amp;lt;init-param&amp;gt;
    &amp;lt;param-name&amp;gt;cors.allowed.methods&amp;lt;/param-name&amp;gt;
    &amp;lt;param-value&amp;gt;GET,POST,HEAD,OPTIONS,PUT&amp;lt;/param-value&amp;gt;
&amp;lt;/init-param&amp;gt;
&amp;lt;init-param&amp;gt;
    &amp;lt;param-name&amp;gt;cors.allowed.headers&amp;lt;/param-name&amp;gt;
    &amp;lt;param-value&amp;gt;Content-Type,X-Requested-With,accept,Origin,Access-Control-Request-Method,Access-Control-Request-Headers,Access-Control-Allow-Origin,Access-Control-Allow-Host&amp;lt;/param-value&amp;gt;
&amp;lt;/init-param&amp;gt;
&amp;lt;init-param&amp;gt;
    &amp;lt;param-name&amp;gt;cors.exposed.headers&amp;lt;/param-name&amp;gt;
    &amp;lt;param-value&amp;gt;Access-Control-Allow-Origin,Access-Control-Allow-Credentials,Access-Control-Allow-Host&amp;lt;/param-value&amp;gt;
&amp;lt;/init-param&amp;gt;
&amp;lt;init-param&amp;gt;
    &amp;lt;param-name&amp;gt;cors.support.credentials&amp;lt;/param-name&amp;gt;
    &amp;lt;param-value&amp;gt;false&amp;lt;/param-value&amp;gt;
&amp;lt;/init-param&amp;gt;
&amp;lt;init-param&amp;gt;
    &amp;lt;param-name&amp;gt;cors.preflight.maxage&amp;lt;/param-name&amp;gt;
    &amp;lt;param-value&amp;gt;10&amp;lt;/param-value&amp;gt;
&amp;lt;/init-param&amp;gt;
&amp;lt;/filter&amp;gt;
&amp;lt;filter-mapping&amp;gt;
  &amp;lt;filter-name&amp;gt;CorsFilter&amp;lt;/filter-name&amp;gt;
  &amp;lt;url-pattern&amp;gt;*&amp;lt;/url-pattern&amp;gt;
&amp;lt;/filter-mapping&amp;gt;​&lt;/PRE&gt;
&lt;P&gt;This is my tomcat configuration and now i am able to access Thingworx API using Postman But again i am getting same error in my browser.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2019 06:17:41 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/CORS-error-while-connecting-Thingworx-REST-API-to-HTTP-request/m-p/621094#M38046</guid>
      <dc:creator>shubhamm</dc:creator>
      <dc:date>2019-08-02T06:17:41Z</dc:date>
    </item>
    <item>
      <title>Re: CORS error while connecting Thingworx REST API to HTTP request- JavaScript XHR Vue.JS</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/CORS-error-while-connecting-Thingworx-REST-API-to-HTTP-request/m-p/621105#M38047</link>
      <description>Check Out: &lt;A href="https://community.ptc.com/t5/ThingWorx-Developers/No-Access-Control-Allow-Origin-Thingworx-8-4-8-5/m-p/614700#M36933" target="_blank"&gt;https://community.ptc.com/t5/ThingWorx-Developers/No-Access-Control-Allow-Origin-Thingworx-8-4-8-5/m-p/614700#M36933&lt;/A&gt;

Its Worked in TWX 8.4</description>
      <pubDate>Fri, 02 Aug 2019 07:17:15 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/CORS-error-while-connecting-Thingworx-REST-API-to-HTTP-request/m-p/621105#M38047</guid>
      <dc:creator>Sathishkumar_C</dc:creator>
      <dc:date>2019-08-02T07:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: CORS error while connecting Thingworx REST API to HTTP request- JavaScript XHR Vue.JS</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/CORS-error-while-connecting-Thingworx-REST-API-to-HTTP-request/m-p/622277#M38246</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/304956"&gt;@shubhamm&lt;/a&gt;.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;If one of the previous responses have helped with a solution, please mark the appropriate one as the Accepted Solution for the benefit of others with the same questions.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Regards.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;--Sharon&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2019 15:01:39 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/CORS-error-while-connecting-Thingworx-REST-API-to-HTTP-request/m-p/622277#M38246</guid>
      <dc:creator>slangley</dc:creator>
      <dc:date>2019-08-13T15:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: CORS error while connecting Thingworx REST API to HTTP request- JavaScript XHR Vue.JS</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/CORS-error-while-connecting-Thingworx-REST-API-to-HTTP-request/m-p/622596#M38310</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I try all the solution but still it is not working.&lt;BR /&gt;&amp;nbsp; i am getting same error.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2019 07:30:05 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/CORS-error-while-connecting-Thingworx-REST-API-to-HTTP-request/m-p/622596#M38310</guid>
      <dc:creator>shubhamm</dc:creator>
      <dc:date>2019-08-16T07:30:05Z</dc:date>
    </item>
    <item>
      <title>Re: CORS error while connecting Thingworx REST API to HTTP request- JavaScript XHR Vue.JS</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/CORS-error-while-connecting-Thingworx-REST-API-to-HTTP-request/m-p/623263#M38441</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/304956"&gt;@shubhamm&lt;/a&gt;.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;How are you passing the AppKey?&amp;nbsp; Are you seeing the same error when you try to access it via your browser?&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;This &lt;A href="https://www.ptc.com/en/support/article?n=CS264349" target="_blank"&gt;article&lt;/A&gt; may help.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Regards.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;--Sharon&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2019 19:40:15 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/CORS-error-while-connecting-Thingworx-REST-API-to-HTTP-request/m-p/623263#M38441</guid>
      <dc:creator>slangley</dc:creator>
      <dc:date>2019-08-21T19:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: CORS error while connecting Thingworx REST API to HTTP request- JavaScript XHR Vue.JS</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/CORS-error-while-connecting-Thingworx-REST-API-to-HTTP-request/m-p/624079#M38588</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/304956"&gt;@shubhamm&lt;/a&gt;.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Just wondering if the article in the previous post helped to resolve your issue.&amp;nbsp; If not, please provide the logs located at \ThingworxStorage\logs.&amp;nbsp; Make sure the logs cover the time period of your testing.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Regards.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;--Sharon&lt;/P&gt;</description>
      <pubDate>Tue, 27 Aug 2019 13:55:38 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/CORS-error-while-connecting-Thingworx-REST-API-to-HTTP-request/m-p/624079#M38588</guid>
      <dc:creator>slangley</dc:creator>
      <dc:date>2019-08-27T13:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: CORS error while connecting Thingworx REST API to HTTP request- JavaScript XHR Vue.JS</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/CORS-error-while-connecting-Thingworx-REST-API-to-HTTP-request/m-p/624143#M38605</link>
      <description>&lt;P&gt;hii Sharon,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;we have followed&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;A href="https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.ptc.com%2Fen%2Fsupport%2Farticle%2FCS229450&amp;amp;data=02%7C01%7Cragrawal%40ptc.com%7Cab8759de55ea436f146408d72a15f09d%7Cb9921086ff774d0d828acb3381f678e2%7C0%7C0%7C637024146086992539&amp;amp;sdata=zz5ZioYMbwFlR0rUFAdXCVNCXjUPeSLO304Yh%2Bbi0MA%3D&amp;amp;reserved=0" target="_blank" rel="noopener"&gt;https://www.ptc.com/en/support/article/CS229450&lt;/A&gt;&amp;nbsp; article that resolved our issue.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks and Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Shubham&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2019 04:41:07 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/CORS-error-while-connecting-Thingworx-REST-API-to-HTTP-request/m-p/624143#M38605</guid>
      <dc:creator>shubhamm</dc:creator>
      <dc:date>2019-08-28T04:41:07Z</dc:date>
    </item>
  </channel>
</rss>

