asrvd / lyrist

simple and RESTful API for getting lyrics of any song made using Next.js and Tailwind CSS
https://lyrist.now.sh
MIT License
101 stars 20 forks source link

[BUG] Unable to make api request with axios #7

Closed kerichdev closed 8 months ago

kerichdev commented 8 months ago

Access to XMLHttpRequest at 'https://lyrist.vercel.app/api/Sovereign%20Self/Thou' from origin 'http://localhost:5173' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

Can't make api requests from own project, it's simply not letting me do so because CORS policy isnt properly configured for an api.

asrvd commented 8 months ago

fixed https://github.com/asrvd/lyrist/commit/3f0dfab7d73707851b6150e2a97d447a7f325064