I'm trying to get user details from the Github API using fetch, but it's showing the following error in the console
Access to fetch at 'https://api.github.com/users/a' from origin 'http://127.0.0.1:5500' 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.
How to solve this problem