How to solve CORS policy problem for Strapi?

For me, some extension was causing the issue which I’m not sure which one but using incognito window fixed it.