jersey icon indicating copy to clipboard operation
jersey copied to clipboard

Jersey returning 404 on first call when working with react

Open iamankit1995 opened this issue 7 years ago • 0 comments

I am using jersey backend with react js as the frontend. Since all 404s are redirected to index.html in react, so I added a errorPageErrorHandler for 404 as index.html. Though this solved the problem of page not found, but the status code returned is still 404. Is there any way that I could send 200 with this. Or a way so that I could redirect all non api calls to index.html.

Thanks for your help

iamankit1995 avatar Feb 21 '18 03:02 iamankit1995