Troubleshoot domain verification with meta tag
How to troubleshoot domain verification with a meta tag in Snyk API & Web
Troubleshoot domain verification with meta tag
For Snyk API & Web to run full scans, you must verify your domains. Visit Verify domain ownership to learn why domain verification is required.
The problem
Domain verification using a meta tag fails with the error: Meta tag not found.
Troubleshoot the problem
Work through the following steps to identify the possible causes and solutions.
Check the index page source
Test if the meta tag is present in the index page source in one of the following ways:
Use the browser:
Type the URL to the index page:
https://<domain_to_verify>, for example:https://example.com.Right-click the page and select View Page Source.
Use a curl command like this:
curl -i https://<domain_to_verify>, for example:curl -i https://example.com.
Analyze the HTML of the index page source, check the following possible causes, and apply the solution:
The meta tag is not on the index page.
Review the implementation to add the meta tag before the closing </head> tag on the index page.
The meta tag is on the index page, but not inside the <head> tag.
Review the implementation to have the meta tag before the closing </head> tag on the index page.
The meta tag is on the index page inside the <head> tag, but it is being injected using JavaScript (for example, a Single-Page Application).
Review the implementation to add the meta tag before the closing </head> tag on the index page without using JavaScript.
After following these steps and applying the solutions, you can verify your domain using a meta tag.
Related articles
Last updated
Was this helpful?

