Card Validator reports 'WARN: Not whitelisted'


#1

The URL in question is: https://bedrock-dev-mattcollier.c9users.io/twitter

The tags in the page right now are taken directly from https://dev.twitter.com/cards/types/summary

The full report from the validator is:
INFO: Page fetched successfully
INFO: 3 metatags were found
WARN: Not whitelisted

curl -A Twitterbot https://bedrock-dev-mattcollier.c9users.io/twitter

properly renders the page.

I understand from reading other postings that the ‘Not whitelisted’ error can sometimes be misleading. Any recommendations?


#2

I don’t see any Twitter card markup when I load your page. Are you expecting them to be rendered by a Javascript function?


#3

@andypiper If you curl -A Twitterbot https://bedrock-dev-mattcollier.c9users.io/twitter

You should see the following HTML: https://gist.github.com/mattcollier/c947ec5706b89a4e009ca21afd740f45

The URL produces different output if the user-agent is a bot.

How are you attempting to access the URL?


#4

Ah, got it - yes, I see that it is different in the browser and with the Twitterbot user agent. However, you’re not returning a content-type header on that response to the Twitterbot. Try adding Content-Type: text/html.


#5

@andypiper You nailed it!

I appreciate your help!


#6

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.