CORS_ORIGIN_ALLOW_ALL doesn't seem to work with mobile app
shaklev opened this issue · comments
Alex commented
I'm using Angular + Ionic for my mobile app & communicating with django backend ( 1.11 ). When i test the request in the browser it works as charm , but when i try it on the mobile ( android ) with build APK , the CORS_ORIGIN_ALLOW_ALL = True
it seems to fail ( returns Response with status : 0 for URL: null
)
Anny suggestions on this ?
Adam Johnson commented
I'd think that's something in your android code, nothing to do with django-cors-headers. Django refuses to even instantiate an HTTP response with code 0: https://github.com/django/django/blob/master/django/http/response.py#L53 , so it can't return one.