Hi,
Tapestry recognises AJAX requests on server side by inspecting the
"X-Requested-With" header. It must have the "XMLHttpRequest" value.

See
https://github.com/apache/tapestry-5/blob/master/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/RequestImpl.java#L170

The header is automatically added by jQuery or Prototype.js used by
Tapestry's client side codes, so if you are not using jQuery,
you need to add this header yourself.
See: https://github.com/jquery/jquery/blob/master/src/ajax/xhr.js#L53

Best regards,
Cezary


On Wed, Sep 4, 2019 at 9:28 PM Rbsn Lbk <orobsonpi...@gmail.com> wrote:

> Hi,
>
> I have developed a Tapestry application. Inside of that application I have
> a method that process the login. I would to access/call this method from
> another non-tapestry application.
>
> I've tried to access the method via ajax, exactly the way I would access
> from inside of the tapestry application. The issue is, tapestry does not
> recognize the request as ajax. Any idea how to solve this?
>
> Thanks a lot for your help.
>

Reply via email to