fix: use only the docs.truecalc.app token in BingSiteAuth.xml - #59
Merged
Conversation
Bing rejected verification with 'Incorrect authentication key' while the file held two <user> entries, even though the required token was present and the file was served correctly to bingbot. Bing reads the first <user> element rather than matching against all of them, so the previous token shadowed the one being verified. Drops the old token. It verified https://truecalc.app/, whose apex has no DNS records at all, so that property could never be crawled and its verification was worth nothing. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Bing rejects verification of
https://docs.truecalc.app/with:— even though the file did contain that key, and was served correctly:
Ruled out as causes: wrong content-type (
application/xml✅), stale CDN cache (last-modifiedafter deploy, retried past the 600s
max-age), and user-agent cloaking (bingbot sees the samebytes).
Bing reads the first
<user>element rather than matching against all of them, so the oldertoken shadowed the one being verified. #58 appended the new token on the assumption that
multiple tokens are checked — that assumption was wrong.
Fix
Keep only the token for the site actually being verified.
Dropping the old token costs nothing: it verified
https://truecalc.app/, whose apex has noA, AAAA, or CNAME records, so Bing could never crawl that property and its verification was
inert.
How to test
After deploy:
curl -s https://docs.truecalc.app/BingSiteAuth.xml # expect exactly one <user>: 8C5913DDDB5710E055911488CB4A9E96Then Bing Webmaster Tools →
https://docs.truecalc.app/→ Verify. Allow up to 10 minutesfor the previous response to fall out of cache (
cache-control: max-age=600).XML validated well-formed with a single-token assertion locally.
🤖 Generated with Claude Code
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.