Last active
August 29, 2015 13:56
-
-
Save thinkjson/9299927 to your computer and use it in GitHub Desktop.
CORS Instapaper POC for pages with Content Protection Policy
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
| javascript:$.post('http://server.thinkjson.com/echo.php?url=' + encodeURIComponent(location.href) + '&title=' + encodeURIComponent(document.title)); |
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
| <?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