问题
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:
- Sign into Google Search Console (fka Google webmaster tools)
- In the Property menu, click "Add Property",
- Enter your site URL: "https://stormy-sea-79521.herokuapp.com/"
- Click "Continue",
- Download the verification file that Google presents you with, as shown below:
- Keep the Search Console open while you upload this file to your Heroku instance and finally,
- Click "Verify" in the Search Console.
- 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