[Apiman-user] How to change the URL location with URL Rewriting Policy

Eric Wittmann eric.wittmann at redhat.com
Thu Feb 2 17:19:23 EST 2017


What is the behavior you are seeing?  It's possible that the apiman gateway
itself is following the redirect.  Is that what's happening?

On Thu, Feb 2, 2017 at 4:23 PM, Celso Agra <celso.agra at gmail.com> wrote:

> All,
>
> I'm trying to change the location path in browser with my nodeJS
> application.
> For some reason, the apiman does not allow me to change that.
>
> So, I'm think to use the URL Rewriting Policy Configuration, but I'd like
> to understand how it works.
>
> Here's my nodeJS code:
>
> req.url = config.redirect_site;
> res.statusCode = 302;
> res.location(config.redirect_site);
> res.end();
>
>
> Without APIman it works fine! Does anyone know how can I set a different
> url with this policy or any other method in Apiman?
>
> Thanks!
>
> Best regards,
>
> --
> ---
> *Celso Agra*
>
> _______________________________________________
> Apiman-user mailing list
> Apiman-user at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/apiman-user
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/apiman-user/attachments/20170202/589f0df5/attachment.html 


More information about the Apiman-user mailing list