Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] My CORS proxy using Jersey (for JAX-RS) with Jetty 9.4.31 doesn't respond

Adding a "/" at the beginning of the path doesn't solve my problem.

 

 

> Message du 07/08/20 08:56
> De : "Simone Bordet" <sbordet@xxxxxxxxxxx>
> A : gouessej@xxxxxxxxx
> Copie à : "Simone Bordet" <sbordet@xxxxxxxxxxx>, "JETTY user mailing list" <jetty-users@xxxxxxxxxxx>
> Objet : Re: [jetty-users] My CORS proxy using Jersey (for JAX-RS) with Jetty 9.4.31 doesn't respond
>
> Hi,
>
> On Fri, Aug 7, 2020 at 6:57 AM <gouessej@xxxxxxxxx> wrote:
> >
> > I still get an HTTP error 404 with your suggestion.
> >
> >
> >
> > diff --git a/src/main/java/fr/gouesse/julien/jaxrs/CorsProxyResource.java b/src/main/java/fr/gouesse/julien/jaxrs/CorsProxyResource.java
> > index 1e0c09c..ee0f4f0 100644
> > --- a/src/main/java/fr/gouesse/julien/jaxrs/CorsProxyResource.java
> > +++ b/src/main/java/fr/gouesse/julien/jaxrs/CorsProxyResource.java
> > @@ -20,7 +20,7 @@ import javax.ws.rs.core.MediaType;
> >
> > import javax.ws.rs.core.Response;
> > import javax.ws.rs.core.Response.Status;
> >
> > -@Path("corsproxy")
> > +@Path("webresources/corsproxy")
>
> Don't you need a "/" at the beginning of the path?
>
> --
> Simone Bordet
> ----
> http://cometd.org
> http://webtide.com
> Developer advice, training, services and support
> from the Jetty & CometD experts.
>

Back to the top