Well, looks like the right answer to this - is to setup proper CORS headers on server backend (Heroku), tune ajax library if needed, and happily make ajax from static site (S3/GAE) Custom domain -> static site
http://www.nczonline.net/blog/2010/05/25/cross-domain-ajax-with-cross-origin-resource-sharing/ On Tue, Aug 21, 2012 at 12:53 PM, Denis Volokhovski <[email protected]> wrote: > Aaah, yes sure, I can map to sub domain, but for regular Javascript/ajax > it is strict cross origin policies and this is an issue. > In this sense from what I seen only App Engine offers the handy way to > host static site (via app.yaml config., even url rewrites maked easy) with > possibility to add backend then. > Thanks! > > > > On Tue, Aug 21, 2012 at 12:36 PM, Neil Middleton > <[email protected]>wrote: > >> It's possible to CNAME an S3 bucket (for instance s3.www.yourdomain.com) >> and have the app on www.yourdomain.com and so on. >> >> Whilst you can't get an exact full domain match you can get pretty close. >> It depends on the cross domain policies you're using (e.g Flash vs AJAX >> and so on) >> >> -- >> Neil >> >> On Tuesday, 21 August 2012 at 10:33, Denis Volokhovski wrote: >> >> Wait, could you tune custom domain DNS such that the same domain will be >> linked both to Heroku (server) and to S3 (static site)? >> If it is possible then it is ideal, and very useful information to me! >> >> Denis >> >> >> On Tue, Aug 21, 2012 at 12:26 PM, Neil Middleton >> <[email protected]>wrote: >> >> Assuming you want to use the Heroku domain for your app. A custom domain >> and some simple DNS config can go a very long way. >> >> -- >> Neil >> >> On Tuesday, 21 August 2012 at 10:17, Denis Volokhovski wrote: >> >> Because of different domains. >> Say, you app got growth and you felt need of server backend in addition >> to your static site and want to make ajax - >> it won't be possible due to cross domain request policy s3 <-> your >> server. >> >> Here, you'll be under the same Heroku domain. >> >> The smoothest way for this scenario is proposed by GAE but I do not >> recommend it anymore. >> >> >> >> >> On Tuesday, March 13, 2012 7:21:59 AM UTC+2, Espen Antonsen wrote: >> >> Why not just put it on S3? >> >> On Sunday, March 4, 2012 3:03:59 AM UTC+7, Tony Bailey wrote: >> >> Say, does anyone have a basic tutorial for publishing a static website >> on to Heroku? I've put up a simple node.js "hello world" but now have 3-4 >> html files I'd like to package up and put on Heroku. >> >> -- >> You received this message because you are subscribed to the Google >> Groups "Heroku" group. >> >> To unsubscribe from this group, send email to >> [email protected] >> For more options, visit this group at >> http://groups.google.com/group/heroku?hl=en_US?hl=en >> >> >> -- >> You received this message because you are subscribed to the Google >> Groups "Heroku" group. >> >> To unsubscribe from this group, send email to >> [email protected] >> For more options, visit this group at >> http://groups.google.com/group/heroku?hl=en_US?hl=en >> >> >> -- >> You received this message because you are subscribed to the Google >> Groups "Heroku" group. >> >> To unsubscribe from this group, send email to >> [email protected] >> For more options, visit this group at >> http://groups.google.com/group/heroku?hl=en_US?hl=en >> >> >> -- >> You received this message because you are subscribed to the Google >> Groups "Heroku" group. >> >> To unsubscribe from this group, send email to >> [email protected] >> For more options, visit this group at >> http://groups.google.com/group/heroku?hl=en_US?hl=en >> > > -- You received this message because you are subscribed to the Google Groups "Heroku" group. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/heroku?hl=en_US?hl=en
