How to resolve cors issue in Magento 2?

I finally have Magento installed and have been setting it up and connecting it to Nuxt, however I’m receiving the following error: Access to fetch at my domain from origin my local domain has been blocked by CORS policy: Response to preflight request doesn’t pass access control check: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. If an opaque response serves your needs, set the request’s mode to ‘no-cors’ to fetch the resource with CORS disabled.

‚Äč

I have the https://github.com/graycoreio/magento2-cors module and followed the steps to use it but still same issue. Any ideas how to fix this?

submitted by /u/chaoticbastian
[link] [comments]