react-mailchimp-subscribe icon indicating copy to clipboard operation
react-mailchimp-subscribe copied to clipboard

CORS issue in next.js app

Open cordial opened this issue 4 years ago • 0 comments

I'm trying to add this library to a next.js app, but when I send the request, I am getting a CORS error - Cross-Origin Read Blocking (CORB) blocked cross-origin response .... with MIME type text/html. See https://www.chromestatus.com/feature/5629709824032768 for more details.

Is there something in next.js needed to make this work? From the web, I might need to edit a next.config.js file, but I'm not really sure what to add to it if so. I presume someone has used this library with next.js, sorry if it is a question to ask them and not here. https://nextjs.org/docs/api-reference/next.config.js/rewrites

cordial avatar Apr 22 '21 18:04 cordial