Skip to content

Instantly share code, notes, and snippets.

@thinkjson
Last active August 29, 2015 13:56
Show Gist options
  • Select an option

  • Save thinkjson/9299927 to your computer and use it in GitHub Desktop.

Select an option

Save thinkjson/9299927 to your computer and use it in GitHub Desktop.
CORS Instapaper POC for pages with Content Protection Policy
javascript:$.post('http://server.thinkjson.com/echo.php?url=' + encodeURIComponent(location.href) + '&title=' + encodeURIComponent(document.title));
<?php
// CORS enabled on nginx
header('Content-type', 'application/json');
echo json_encode($_GET);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment