Thursday, September 9, 2010

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

Are you familiar with the "-noserver" option? Check it out http://code.google.com/webtoolkit/doc/latest/FAQ_DebuggingAndCompiling.html#How_do_I_use_my_own_server_in_hosted_mode_instead_of_GWT%27s

On Thu, Sep 9, 2010 at 11:00 AM, Ketan Shah <ketan.shah@gmail.com> wrote:
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.


--
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