I was trying to build a horoscope app with Vanilla JavaScript. I am using fetch API to get horoscope details with this API.
I get this error in the console:
No 'Access-Control-Allow-Origin' header is present on the requested resource.
Origin 'https://pratik-pdw.github.io' is therefore not allowed access.
If an opaque response serves your needs, set the request's mode to 'no-cors'
to fetch the resource with CORS disabled.
I have deployed the app as a Github Page.