I've encountered something that I can not understand. I've set up a Python script to pull information from a response from XHR. Everything is working smoothly. The endpoint I'm reaching is through GET
, however, the endpoint only gives me access to the data if I insert the correct headers in the script. (Taking the headers from the "Fetch Console" in the Inspect Element on the page. It's publicly accessible). However after 24 hours the headers are no longer valid and I can't pull data after the 24th hour, hence I need to reload the headers with new ones. Why does that happen?
I'm taking the headers from the "Fetch Console" and it's running completely fine, but after the 24th hour, new headers should be inserted in the script. In this case, the script has a shortcut to headers.json
where I put the new headers for simplicity.