Redirect after registration does not work

Updated to strapi v4.1.0,but error remains. This is what the terminal spits out:

[2022-02-17 18:52:23.455] error: Forbidden
ApplicationError: Forbidden
    at Object.register (/Volumes/[...]/strapi-postgres/node_modules/@strapi/plugin-users-permissions/server/controllers/auth.js:349:17)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at async returnBodyMiddleware (/Volumes/[...]/strapi-postgres/node_modules/@strapi/strapi/lib/services/server/compose-endpoint.js:52:18)
    at async policiesMiddleware (/Volumes/[...]/strapi-postgres/node_modules/@strapi/strapi/lib/services/server/policy.js:24:5)
    at async /Volumes/[...]/strapi-postgres/node_modules/@strapi/strapi/lib/middlewares/body.js:24:7
    at async /Volumes/[...]/strapi-postgres/node_modules/@strapi/strapi/lib/middlewares/logger.js:22:5
    at async /Volumes/[...]/strapi-postgres/node_modules/@strapi/strapi/lib/middlewares/powered-by.js:16:5
    at async cors (/Volumes/[...]/strapi-postgres/node_modules/@koa/cors/index.js:95:16)
    at async /Volumes/[...]/strapi-postgres/node_modules/@strapi/strapi/lib/middlewares/errors.js:13:7

Any ideas?