AUTH_USER_MODEL = 'biblio.Usuari' INSTALLED_APPS = [ 'corsheaders', 'biblio.apps.BiblioConfig', #... ] MIDDLEWARE = [ 'corsheaders.middleware.CorsMiddleware', #... ] CORS_ALLOWED_ORIGINS = [ "http://localhost:5173", # Exemple: React en desenvolupament amb Vite o CRA "http://127.0.0.1:5173", "https://el-teu-domini.com", # Quan el tinguis en producció ]