Ah, superb, that worked great. I never would have worked that out myself so you have my undying thanks!
Tommy On Monday, 28 November 2016 00:25:04 UTC, Les Vogel wrote: > > Try with myproject.appspot-preview.com, or more specifically, > service-dot-projectID.appspot-preview.com > > > > > On Sat, Nov 26, 2016 at 6:04 PM, Tommy Long <[email protected] > <javascript:>> wrote: > >> Hello, >> >> Apologies in advance if I've missed something stupid but after an entire >> evening of Googling and messing around I can't seem to get any further with >> this issue. >> >> I have a nodejs express API which has CORS enabled (allowing "*" for the >> time being) and works fine when uploaded to a web server I have outside of >> Google Cloud. >> >> I'm trying to use it with AppEngine though (for scalability among other >> things). This is where I'm running into issues though. >> >> The URL that is consistent for a service >> (https://[service-name]dot[project-name][project-id]/) redirects to a >> deployment-specific URL >> (https://[deployment-timestamp][service-name]dot[project-name][project-id]/). >> >> If I use the deployment-specific URL in my code then again everything >> works fine. If, however, I swap out the deployment-specific URL for the >> consistent service URL (which redirects) then I simply get a 307 response >> (to the OPTIONS request) and the request fails at that point. I can't even >> get the location response header from the 307 OPTION response as this >> information is not given back to the JavaScript function that initiated the >> request. >> >> What can I do to get around this? This must be a common issue that people >> regularly run into but I can't for the life of me figure it out. >> >> Please help! >> >> Thanks in advance, >> >> Tommy >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Google App Engine" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> To post to this group, send email to [email protected] >> <javascript:>. >> Visit this group at https://groups.google.com/group/google-appengine. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/google-appengine/87a58f33-e2d0-47de-832a-bc1f914aa887%40googlegroups.com >> >> <https://groups.google.com/d/msgid/google-appengine/87a58f33-e2d0-47de-832a-bc1f914aa887%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > > > * • **Les Vogel* > * • *Cloud Developer Relations > * • *[email protected] <javascript:> > * • *+1-408-676-7023 > > > -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/google-appengine. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/7b1a4c6d-b12f-4a26-8e76-46237131ebd8%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
