LoginApi with CORS

83 views
Skip to first unread message

Markus Wuersch

unread,
Oct 1, 2014, 6:38:00 AM10/1/14
to secure...@googlegroups.com
Hi,

I much appreciate the introduction of the LoginApi controller to work with single page apps. I am trying to use the LoginApi controller for a PhoneGap app and thus the request is not from the same domain as the play app. This means I need to add the CORS headers (Access-Control-Allow-Origin, etc.). Any suggestions on how to do that with the LoginApi in a Java play app?

Thanks,
Markus

Jorge Aliss

unread,
Oct 1, 2014, 10:39:55 AM10/1/14
to secure...@googlegroups.com
Markus,

You should be able to add CORS headers using a Filter in Global.  

Jorge

eswar chakravarthi

unread,
Nov 16, 2017, 11:20:44 AM11/16/17
to SecureSocial

 Hi Markus
   Did u find any solution for this ? 
Thanks
Reply all
Reply to author
Forward
0 new messages