Re: How to provide a tapestry method to be access from another application?

2019-09-04 Thread Qbyte Consulting
Another approach is to export the logic of the login process to a separate service and have both client applications call it. John Sent from my iPhone > On 5 Sep 2019, at 02:27, Rbsn Lbk wrote: > > Hi, > > I have developed a Tapestry application. Inside of that application I have > a method

Re: How to provide a tapestry method to be access from another application?

2019-09-04 Thread Rbsn Lbk
Amazing! That was exactly what I was looking for. Thank you so much!! On Wed, 4 Sep 2019 at 22:25, Cezary Biernacki wrote: > Hi, > Tapestry recognises AJAX requests on server side by inspecting the > "X-Requested-With" header. It must have the "XMLHttpRequest" value. > > See > > https://github.c

Re: How to provide a tapestry method to be access from another application?

2019-09-04 Thread Eugen
Hi, is Your method exposed as event? Or You have a CORS exception? What is the error on client side? Regards Eugen Rbsn Lbk schrieb am Mi., 4. Sep. 2019, 21:28: > Hi, > > I have developed a Tapestry application. Inside of that application I have > a method that process the login. I would to acc

Re: How to provide a tapestry method to be access from another application?

2019-09-04 Thread Cezary Biernacki
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 au

How to provide a tapestry method to be access from another application?

2019-09-04 Thread Rbsn Lbk
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 applicatio