Forum Bugs

Loading Codepen preview images

abernier
Hi,

In order to display codepen embeds, I'm trying to replace it by its preview image according to https://blog.codepen.io/documentation/api/screenshots/

Unfortunately, prince fails to load such images :

<img src="https://codepen.io/ironhack/pen/NRpbqX/image/large.png">


prince: Preparing document...
prince: loading image: https://codepen.io/ironhack/pen/NRpbqX/image/large.png
prince: debug: [prefetch-1] error loading https://codepen.io/ironhack/pen/NRpbqX/image/large.png: The requested URL returned error: 403 Forbidden
prince: debug: error loading resource: The requested URL returned error: 403 Forbidden
prince: https://codepen.io/ironhack/pen/NRpbqX/image/large.png: warning: The requested URL returned error: 403 Forbidden


Any help appreciated ;)

Edited by abernier

mikeday
It appears that codepen.io does not like non-browser web user-agents like Prince (or wget, or curl) and returns a 403 response with a captcha instead of the image.