Re: Revisiting cross-site requests: CORS and development mode
Hi,
you can use the development mode while dropping the built-in Jetty: See https://developers.google.com/web-toolkit/doc/1.6/FAQ_DebuggingAndCompiling?hl=de#How_do_I_use_my_own_server_in_hosted_mode_instead_of_GWT%27s
But I would try this approch: Install a proxy servlet in the built-in jetty which dispatches all calls to specified backend server.
Now you can easily start the hosted mode against a development or production enviroment.
J.
2012/6/11 Christopher Piggott <cpiggott@gmail.com>
I've been revisiting the cross-site request approaches (currently using JSONP) and tried to search the mailing list for this answer but didn't find it.Is it possible to modify development mode to send an Access-Control-Allow-Origin header?A number of "answers" to the question seemed to say "Don't use the built-in server" but that sounds painful. I like development mode and want to keep it, I am just wondering how to make it send custom headers.--Chris--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/MylER2OlcD0J.
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.
--
Johannes Barop - Softwareentwicklung & Beratung
Alsterdorfer Straße 573
DE-22335 Hamburg
E-Mail: jb@barop.de
Tel.: +49 40 807 907 37
Fax : +49 40 807 907 39
Mobil: +49 176 491 551 38
Web: http://www.barop.de
Steuernummer: 49/012/01566
Umsatzsteuer-Identifikationsnummer gemäß §27 a Umsatzsteuergesetz: DE271106292
--
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.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home