r/ProgrammerTIL • u/aboPablo • Mar 24 '19
Other TIL about digest auth
I was stuck with task at work where I am supposed to call an AXIS api for a camera. From the looks of it when you manually open the camer's feed from the browser you get basic auth. I was using rails so I tried to make the request from jquery and I got a CORS error. And surely enough allowing all headers and such didnt work as expected. Turns out there is this type of auth that looks justclike basic auth but is not. So beware cause this one was a pain in the neck.
26
Upvotes
View all comments
Show parent comment
-6
u/aboPablo Mar 24 '19
Basically the same javascript alert and all. Trying from postman with embedded username and password in the url worked just fine. But from rails it did not work and the error was cors. I honestly did not notice that so maybe that was the problem.