Looking at the Code i have thought about something.
When looking at the error 403 its forbidden meaning you do not have the permissions to access the endpoint however deleting the cache and cookies aswell as checking if you are passing all of the neccecary parameters can help you solve the Problem.