cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

CORS error : ThingWorx 9.1.0

Ashritha
13-Aquamarine

CORS error : ThingWorx 9.1.0

I have followed CS229450 and changed web.xml file and restarted the tomcat service. (cleared tomcat cache)

But still CORS error exists

Error :

Access to fetch at 'http://xxxxxxx/Thingworx/Things/xxx/Services/xxx' from origin 'null' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: The 'Access-Control-Allow-Origin' header contains multiple values '*, *', but only one is allowed. Have the server send the header with a valid value, or, if an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

I have attached web.xml file.

Please provide solution for this issue.

 

Thank you!

2 REPLIES 2
VladimirN
23-Emerald IV
(To:Ashritha)

slangley
23-Emerald II
(To:Ashritha)

Hi @Ashritha.

 

Which web.xml file did you modify?

 

You might also try changing the cors.allowed.origins to specific domains instead of using a wildcard.

 

Regards.

 

--Sharon

Announcements