gpt4 book ai didi

node.js - 我无法在 heroku 中部署 google oauth 应用程序

转载 作者:太空宇宙 更新时间:2023-11-04 00:01:58 26 4
gpt4 key购买 nike

我正在 Heroku 中部署 google oauth 应用程序。为此,我必须向 google master 验证应用程序域,但 herkou 应用程序 url 不同,并且 google 网站管理员不接受。任何方法来验证heroku url。 https://stormy-sea-79521.herokuapp.com/

最佳答案

当然!有几个选项可以验证您的域的所有权。推荐的方法是将 html 验证文件添加到您的应用中,地址为 https://stormy-sea-79521.herokuapp.com/

您应该能够从 Google Search Console 添加下载文件,然后将其部署到项目的根目录,例如:https://stormy-sea-79521.herokuapp.com/googlexxxyyyyzzz.html

生成 html 文件有几个步骤:

  1. 登录Google Search Console (fka Google 网站管理员工具)
  2. 在“属性”菜单中,单击“添加属性”, Add property menu is in the top right of the GSC
  3. 输入您的网站网址:“https://stormy-sea-79521.herokuapp.com/
  4. 点击“继续”,
  5. 下载 Google 向您提供的验证文件,如下所示: Download a Google verification file
  6. 在将此文件上传到 Heroku 实例时保持 Search Console 打开,最后
  7. 在 Search Console 中点击“验证”。
  8. 庆祝! 🎉

还有其他验证方法。您可以将特定的标记添加到您的主页,或者关联您的 Google Analytics(分析)或 Google 跟踪代码管理器帐户。 Find Google's docs for verifying your domain here .

关于node.js - 我无法在 heroku 中部署 google oauth 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54231660/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com