You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am building a monolith platform of django backend and vue frontend with vite (django-vite). For authentication, I am using session authentication on django side and vue can get user info by djoser or template props (?).
When in DEV mode (localhost:8000 for django server and localhost:5173 for vue), no issues of any axios calls(GET, POST, PATCH etc...) to django backend. After building the vue files with css, I placed them in Nginx reverse proxy server. All of the axios calls have been rejected with 403 errors. If I typed the api address on browser address window, DRF is working fine.
Originally, I did not used corsheader library because django and vue are same origin, but I installed to allow everything. Nothing works. Please help me what could be a solution?
The text was updated successfully, but these errors were encountered:
I am building a monolith platform of django backend and vue frontend with vite (django-vite). For authentication, I am using session authentication on django side and vue can get user info by djoser or template props (?).
When in DEV mode (localhost:8000 for django server and localhost:5173 for vue), no issues of any axios calls(GET, POST, PATCH etc...) to django backend. After building the vue files with css, I placed them in Nginx reverse proxy server. All of the axios calls have been rejected with 403 errors. If I typed the api address on browser address window, DRF is working fine.
Originally, I did not used corsheader library because django and vue are same origin, but I installed to allow everything. Nothing works. Please help me what could be a solution?
The text was updated successfully, but these errors were encountered: