When using Tor Browser the pull of the HackerNews json fails because the response sends back a header of "Access-Control-Allow-Origin: null". HackerNews copies the value of the "Origin" header in the request and sends that back as the "Access-Control-Allow-Origin" so since Tor Browser send it "null" it get "null" back and is unable to read the data in the response. However if the json is pulled from the server through a php script the data is able to be read.
If the initial attempt to get the json using javascript in the browser fails, then an attempt will be made to get the json using the verifyHackerNews.php script on the server.
When using Tor Browser the pull of the HackerNews json fails because the response sends back a header of "Access-Control-Allow-Origin: null". HackerNews copies the value of the "Origin" header in the request and sends that back as the "Access-Control-Allow-Origin" so since Tor Browser send it "null" it get "null" back and is unable to read the data in the response. However if the json is pulled from the server through a php script the data is able to be read.
If the initial attempt to get the json using javascript in the browser fails, then an attempt will be made to get the json using the verifyHackerNews.php script on the server.