The error I'm getting is
XMLHttpRequest cannot load [url]. The 'Access-Control-Allow-Origin' header has a value '[url]' that is not equal to the supplied origin. Origin 'null' is therefore not allowed access.
NOTE: I run this on the [url]'s page in console. What can I do to fix this? I've also tried all of the other methods I read online.
If you need me to post code, here it is: http://hastebin.com/urivabokob.js