CORS Policy error in NextJs and Strapi

System Information
  • Strapi Version:
  • Operating System:
  • Database:
  • Node Version:
  • NPM Version:
  • Yarn Version:

Access to XMLHttpRequest at ‘localhost:8085/email-registereds’ from origin ‘http://localhost’ has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, chrome-untrusted, https.

If you search cors in the forum its been asked a few times.