LEAN-LIFE icon indicating copy to clipboard operation
LEAN-LIFE copied to clipboard

Network error when logging into frontend

Open Yoriyari opened this issue 1 year ago • 0 comments

Hello! I followed the steps for setting up the backend and frontend respectively. I am able to log into the backend without issue. However, attempt to log into the frontend immediately returns a notification in the top-right of the UI, stating "Error: Network Error". The browser's console tab returns this message at the time:

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://0.0.0.0:8000/api/auth/obtain_token/. (Reason: CORS request did not succeed). Status code: (null).

I have tried disabling my browser's same origin policy, ensured CORS_ALLOW_ALL_ORIGINS is set to True in the backend's settings.py, and tried using other browsers. The same error persists. Do you have any suggestions on how to resolve this?

Yoriyari avatar Sep 20 '23 15:09 Yoriyari