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
4
u/evenisto Mar 25 '19
CORS has nothing to do with auth, are you sure it was that?