Skip to Content

XSA CORS - OPTIONS request forbidden

Jul 05, 2017 at 11:51 AM


avatar image


I have a problem configuring CORS on my Java application (it's deployed with push command via xsa client, as .war file, means it is not an .mtar archive so I cannot add .mtad or xs-app.json probably).

The problem is that preflight request (OPTIONS) doesn't pass (403 Forbidden status is returned) and also I can see in logs of my application that this request doesn't even get to my internal CORS filter (configured in web.xml of my application).

So my conclusion is that router bound to my application is blocking OPTIONS request probably.

Is there any way to configure the application, or router, to serve OPTIONS request, without converting my application (.war) to .mtar archive and restructuring everything?

Thanks in advance.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Animesh Jain
Dec 19, 2017 at 08:25 PM

@Nikola Malenic did you find the solution for this problem? I am facing the same issue. Kindly help.

10 |10000 characters needed characters left characters exceeded