Comments (8)
Hey, I just pushed a patch that should resolve these errors. Do let me know if it doesn't work.
from genius-lyrics-api.
Thank you for the quick reply. It now works on the browser with disabled security but still not on a normal browser...
from genius-lyrics-api.
cannot load XXXXX due to access control checks
is actually a CORS error. It's probably being caused by your production or testing environment. Can you share some details about where are you hosting the app, which browser are you testing on and maybe a code snippet where you call the API?
from genius-lyrics-api.
I tried deploying my app on Github Pages as well as Heroku. Same error in both. Is this going to be fixed anytime soon or do I have to find another lyrics scraper?
from genius-lyrics-api.
I have the same error for me as well.
from genius-lyrics-api.
Hey everyone, it seems the problem is using the Authorization
header. If you use the access_token
in the query string, then there are not CORS issues. This seems to be on genius side.
One suggestion would be to expose a configuration flag that allows to configure the way authorization is done, e.g:
const options = {
apiKey: 'XXXXXXXXXXXXXXXXXXXXXXX',
title: 'Blinding Lights',
artist: 'The Weeknd',
optimizeQuery: true,
authMethod: "header" // or "queryString"
};
from genius-lyrics-api.
@namirsab Does that mean , for the time being ,we can't really use this package in production mode ?
from genius-lyrics-api.
An authHeader
[boolean] property can now be passed in the options
object. Authentication via query string is the default. This should fix the CORS issue. Sorry this took so long.
from genius-lyrics-api.
Related Issues (20)
- CORS issue on the app deployed to Heroku HOT 1
- Axios dependency security vulnerability HOT 1
- The searchSong() method is not working properly with special characters. HOT 1
- Please add support for optional genius api host address HOT 10
- Can't fetch lyrics HOT 2
- getSongById documentation incorrect HOT 1
- Implementing entirely on front end HOT 1
- 403 on Server but not on my Desktop HOT 6
- get lyric with id problem
- Error 403 (Captcha) HOT 5
- CORS issue HOT 4
- getSongById 401 response HOT 1
- getLyrics broken for some Genuis lyrics pages HOT 1
- Question: How can I export this library as a module to be used inside a webpage? HOT 1
- Issue: Missing CORS ('Access-Control-Allow-Origin') on deployed website. HOT 3
- Confused about the implementation HOT 15
- Song title found does not match the requested one HOT 4
- Keep getting a 401 error HOT 1
- Lyrics longer than 4000 characters aren't returned HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from genius-lyrics-api.