Already found the issue. The issue wasn’t in my code. Unfortunately the database don’t get updated if you change the server url or the grant-config. I had to manually change the grant settings in the strapi core settings table. Hope that help some people who also face the same issue.
1 Like