Django-rest-framework + React Admin приводит к проблемам с api

Я разрабатываю проект, который использует django-rest для backend, postgresql для db и react-admin для frontend и firebase для auth. Для представлений django я использовал общие представления (ListAPIView, RetrieveAPIView, ListCreateAPIView, RetrieveUpdateDeleteAPIView).

Вопросы следующие:

  • When I open the link from my backend server and test the api it works perfectly, but when I use the react localhost link - it loads the interface, it shows the data from the backend but it does not allow me to create, edit or delete new items from the UI.
  • When editing, deleting from the UI I receive 404 but when I do it from backend its ok.
  • When creating from the UI I receive 405 Method not allowed, but I do not have any permissions set up and I am logged in as admin.
  • When I set permissions the react-admin kicks me out of my profile and when I try to login it says "session expired" and kicks me out again.

Можете ли вы мне что-нибудь посоветовать или хотя бы сказать, что я здесь упускаю. Спасибо за ваше время.

Вернуться на верх