Highlighted
Super Contributor.
Super Contributor.
323 views

How to enable CORS on Tomcat related to Java+Restful API

Hello, I'm working on a testing SM 9.34 environment and I have to modify the web.xml file to add CORS (Cross Origin Resource Sharing) filter supported by Tomcat.  This testing environment runs with Windows 2008 R2 Server Enterprise Edition x64  and Apache Tomcat 7.0.64 (32 bits)

In this link http://tomcat.apache.org/tomcat-7.0-doc/config/filter.html#CORS_Filter  is explained how to modify the web.xml file

My question is ¿wich steps I must folllow to do that?  Please I need any suggestions.

Thanks in advance

 

Good questions will have Good answers
0 Likes
2 Replies
Highlighted
Acclaimed Contributor.
Acclaimed Contributor.

Re: How to enable CORS on Tomcat related to Java+Restful API

Hello Norita,

Hope you are doing fine.

According to your post, could you please let us know exactly waht do you need on the implementation with SM? I asked because what you mentioned is tomcat configuration properly and doesn't have relation with SM directly, actually i haven't listen about it or work with that, please let us know.

Saludos

Carlos Villalobos R
Customer Support Engineer
If you find that this or any other post resolves your issue, please be sure to mark it as an accepted solution.
If you are satisfied with anyone’s response please remember to give them a KUDOS by clicking on the STAR at the bottom left of the post and show your appreciation.
0 Likes
Highlighted
Acclaimed Contributor.
Acclaimed Contributor.

Re: How to enable CORS on Tomcat related to Java+Restful API

Hi Norita,
hope you are doing fine.
I would like to know if you still require assistance or if your question was resolved. If so, could you please mark it as a correct answer so that other members can benefit from this answer and close this question. If it didn’t resolve then please let me know so that we can address your question again.


best regards.

Carlos Villalobos R
Customer Support Engineer
If you find that this or any other post resolves your issue, please be sure to mark it as an accepted solution.
If you are satisfied with anyone’s response please remember to give them a KUDOS by clicking on the STAR at the bottom left of the post and show your appreciation.
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.