genius-lyrics-api icon indicating copy to clipboard operation
genius-lyrics-api copied to clipboard

CORS issue

Open ashleygyngell opened this issue 2 years ago • 2 comments

Hey! Getting a Cross-Origin Request Blocked response from Genius on local host and on Netlify.

Is there an updated workaround for this?

Cheers!

ashleygyngell avatar May 09 '22 22:05 ashleygyngell

Hi, sorry there's no getting around third-party CORS errors. You'll have to use it on the server side. The readme was misleading on this so I've updated it.

farshed avatar May 11 '22 19:05 farshed

No problem, I had suspected that might be the solution - thanks :D

ashleygyngell avatar May 11 '22 19:05 ashleygyngell

Hi @farshed, I am new to this. 😬 I might sound stupid, but can you advise me or give me any reference for what you mean by use on the server side? Thanks.

abhilashmnair avatar Mar 10 '23 06:03 abhilashmnair

I somehow overlooked the notification it seems. Sorry about that. And it's fine really, none of us are born knowing that. Server side simply means in the backend i.e. the code is executed on a computer that's not yours. Or in other words, this library's code won't work in a browser environment. You might want to read about the "Client-Server model" or how the internet works. Let me know if you've any more questions.

farshed avatar Mar 31 '23 23:03 farshed