Empty data response when calling with fetch but not in insomnia/postman

System Information
  • Strapi Version: 4.7.1
  • Operating System: MacOS
  • Node Version: 18.15
  • NPM Version: 9.5
  • Yarn Version: 1.22.19

When calling using the fetch method I get the following response:

  data: [],
  meta: { pagination: { page: 1, pageSize: 25, pageCount: 0, total: 0 } }

When I input the exact same url in Insomnia/Postman I get a proper response where the data is filled in. I already tried giving more options to the fetch method but none seem to work.

An example of the url I use to do my data fetching is:[slug][$eq]=&locale=en&populate[blocks][populate]=members.picture,header

Could it be that where you fetch that infromation you have an other role then when using Insomnia/Postman