I found the configuration I needed to prevent this from happening: Middlewares | Strapi Documentation