Closed Santosh-Baliarsingh closed 2 months ago
CORS is a security feature inbuilt in browsers. So, the only way to bypass it is by adding appropriate headers. Either modify the code yourself or use a cors proxy.
Thanks!! Gogoanime api is working now.
Describe the bug
I am facing a CORS policy error when trying to fetch anime details from the Gogoanime API. The error message is as follows:
Steps to reproduce
Expected behavior
The fetch request should successfully retrieve the anime details without being blocked by the CORS policy.
Actual behavior
The fetch request is blocked by the CORS policy, and the following error message is displayed in the console: Access to fetch at 'https://api.consumet.org/anime/gogoanime/info/spy-x-family' from origin 'http://localhost:5173' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Additional context