HTTP code 302 encountered when deploying on Google App Engine Endpoints

瘦欲@ 提交于 2019-12-04 14:54:28

This error stems in part due to inconsistent documentation. While the official documentation's sample web.xml uses a <security-constraint> block, that of the sample tictactoe app does not.

If you are getting a HTTP 302 status code, check the following two things (from this post):

  1. in your .api file in WEB-INF, change http to https in the bns declaration,
  2. remove the <security-constraint> block from your web.xml.

The above worked for me; not sure what the security constraint bit was about. Maybe a GAE admin can improve this answer?

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!