renanbastos93 / image-to-base64

Generate a image to base64.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cors-Policy Error

anilv0001 opened this issue · comments

Access to fetch at 'http://abc.com' from origin 'https://xy.com' has been blocked by CORS policy: 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 m getting this response when using in web, please let know anything I m missing thanks

You'll need to use a CORS proxy, such as https://cors-anywhere.herokuapp.com. I would recommend cloning and hosting yourself if you're using this in production.