2๐
โ
I think I have got a reasonable finding for the issue. Might be helpful for others someday.
AngularJS $resource removes โ/โ from the URL. And preflight OPTIONS request for URL 'http://localhost:8000/someURL'
was getting redirected to 'http://localhost:8000/someURL/'
because django APPENDS_SLASH by defaults. Hence preflight request was getting redirected.
Either I need to force $resource to not remove โ/โ from URL or force django to APPEND_SLASH = False
and update my URLs accordingly.
๐คNish
Source:stackexchange.com