升级到AppEngine Flexible Beta为调度规则生成重定向(307) [英] Upgrading to AppEngine Flexible Beta generates a redirect (307) for dispatch rules

查看:312
本文介绍了升级到AppEngine Flexible Beta为调度规则生成重定向(307)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

更新后的问题:
新的灵活测试版环境在调度规则上生成重定向(也就是307),而旧的灵活环境则没有。因为重定向的域名是不同的(包括版本标识符,它是一个完全合格的域名),因此来自我的网站的AJAX请求失败(跨域浏览器限制)。这在过去不是重定向。
Google开发者可以在这里协助吗?

  HTTP / 1.1 307确定
内容长度:180
Content-Type:text / html
日期:2016年11月17日星期四19:01:53 GMT
位置:https:// 20161118t002457-dot -...
服务器:Google Frontend
Via:1.1 google

< html>
< head>< title> 307 Temporary Redirect< / title>< / head>
< body bgcolor =white>
< center>< h1> 307暂时重定向< / h1>< / center>
< hr>< center> nginx< / center>
< / body>
< / html>


解决方案

显然,这是一个已知的问题,phew。
请参阅: https://groups.google.com / forum /#!topic / google-appengine / -0EmVFi22Vc



不知道,在哪里跟踪,但我很高兴Google知道它。 / p>

Updated Question: The new flexible beta environment generates a redirect (that too a 307) on a dispatch rule, while the old flexible env did not.

This breaks websites like mine, because the redirected domain name is different (includes version identifier, its a fully qualified one) and hence AJAX requests from my websites fail (cross domain browser restriction). This used to not be a redirect in the past. Google dev's can you please assist here?

HTTP/1.1 307 OK
Content-Length: 180
Content-Type: text/html
Date: Thu, 17 Nov 2016 19:01:53 GMT
Location: https://20161118t002457-dot-...
Server: Google Frontend
Via: 1.1 google

<html>
<head><title>307 Temporary Redirect</title></head>
<body bgcolor="white">
<center><h1>307 Temporary Redirect</h1></center>
<hr><center>nginx</center>
</body>
</html>

解决方案

Apparently, this is a known issue, phew. See: https://groups.google.com/forum/#!topic/google-appengine/-0EmVFi22Vc

Not sure, where its tracked, but I am happy Google is aware of it.

这篇关于升级到AppEngine Flexible Beta为调度规则生成重定向(307)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆