• 401 Unauthorized when extension fetches JSON for threads in the Drugs subforum
    2 replies, posted
I haven't gotten a 401 (or any response besides 200) for any thread in any other subforum. Here's a picture of two requests made from the same page: https://i.imgur.com/edqucjC.png The Request Headers are identical, but clearly one gets a 401 response and the other doesn't. You can see the JSON object for yourself, the URL is valid: https://forum.facepunch.com/f/drugs/bspnq/High-Music/1/?json=1. Is this an error, or is the site trying to keep robots from accessing URLs in some places?
Might have something to do with the subforum being hidden to people who arent signed in. If that is the case then it should 401 on json access to Shindlers fist, oify and the gmf. Not too sure though.
Yeah, I think you're right. Same thing happens in Schindler's Fist. Funny thing is I purposefully made it so the request was not sent with the login cookie, because sending these JSON requests with that cookie makes the site think you actually viewed all those threads. Oh well.
Sorry, you need to Log In to post a reply to this thread.