Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Comments
-
asgs335013dProbably a CORS error. The network/console tab of the Browser DevTools should reveal more details
-
mszaf19513dCors issue. Wasted an hour this weekend thinking my code wasn't working. You can verify using a public facing API and see if it works with a non local api
-
jschmold238413dI fought with this a lot. The consumer service has to provide a valid response that tells how to use the endpoint. The options call is a browser preflight, and the put request is aborted (usually with error) if the preflight gives incorrect information about how to consume the route
-
needToRoll279212d@linuxxx same, insomnia is great because if you use it you can finally GET some REST
-
linuxxx15539412d@asgs @mszaf It was cors although I did set the appropriate headers, they're entirely ignored apparently.
-
linuxxx15539412d@jschmold @Root Even with returning the correct information as for the options request, it just stops afterwards. I hacked around it for now.
-
jschmold238412d@linuxxx
Shoot me an email. I have had to fight with weird request issues a lot
me@jonathanschmold.ca -
Hey linuxxx,
sorry for the late reply. I have sent you an email with my tox id :)
Writing a new service. (Will be free for now)
Writing up an Ajax PUT request and when it executes, I see an options request firing, that's good.
But no fucking PUT request afterwards!?
WHAT WHY FUCK ME HELP 😢
rant