LEAN-LIFE
LEAN-LIFE copied to clipboard
Network error when logging into frontend
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?