Thursday, September 9, 2010

GWT Newbie:: devmode (same origin policy) with PHP REST backend

Hi All,

I am in process of exploring GWT as a potential candidate for my REST
based API developed in PHP (served via nginx and php-fpm). The devmode
startsup gwt server at port 8888 while I have my backend at port
8080. I am trying to use RequestBuilder but I dont want to use *jsonp*
since I dont intend to open up my API as of now (fyi .. I tried with
jsonp by having a callback argument in the url - didnt work, got a
blank response). Obviously I am running into 'same origin policy'. I
know once I deploy the GWT app in production I would not run into
'same origin policy' .

Is there any robust solution for achieving this? Any help on this
would be appreciated.

Thanks,
-Ketan.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment