I Can't deploy google oauth app in heroku

こ雲淡風輕ζ 提交于 2021-01-01 06:42:01

问题


I am deploying google oauth app in heroku. For that i have to verify app domain to google master but herkou app url is different and google webmaster is not accepting. Any way to verify heroku url. https://stormy-sea-79521.herokuapp.com/


回答1:


Definitely! There are a few options to verify ownership of your domain. The recommended method is to add an html verification file to your app at https://stormy-sea-79521.herokuapp.com/.

You should be able to add download the file from Google Search Console, then deploy it to the root of your project at, say: https://stormy-sea-79521.herokuapp.com/googlexxxyyyyzzz.html.

There are a few steps to generating the html file:

  1. Sign into Google Search Console (fka Google webmaster tools)
  2. In the Property menu, click "Add Property",
  3. Enter your site URL: "https://stormy-sea-79521.herokuapp.com/"
  4. Click "Continue",
  5. Download the verification file that Google presents you with, as shown below:
  6. Keep the Search Console open while you upload this file to your Heroku instance and finally,
  7. Click "Verify" in the Search Console.
  8. Celebrate! 🎉

There are alternative verification methods as well. You could add a specific meta tag to your home page, or associate your Google Analytics or Google Tag Manager account. Find Google's docs for verifying your domain here.



来源:https://stackoverflow.com/questions/54231660/i-cant-deploy-google-oauth-app-in-heroku

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