Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cors issue #4

Open
estellederrien opened this issue May 27, 2019 · 1 comment
Open

Cors issue #4

estellederrien opened this issue May 27, 2019 · 1 comment

Comments

@estellederrien
Copy link

Hello,

I have correctly added the lib, this is my query ;

//Show one Season
	footballdataFactory.getSeason({
		id: '<SEASON_ID>',
		protocol: 'auto', // (optional) 'http', 'https', 'auto'
		apiKey: '4d5e1374b3df4071827db1e3ccd1af17', // Register for a free api key: http://api.football-data.org/register
	}).then(function (_data) {
		//on success
	}).catch(function (_data) {
		//on error
	});

I run into this error :

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://api.football-data.org/v1/soccerseasons/%3CSEASON_ID%3E?apiKey=4d5e1374b3df4071827db1e3ccd1af17. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing).[Learn More]
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://api.football-data.org/v1/soccerseasons/%3CSEASON_ID%3E?apiKey=4d5e1374b3df4071827db1e3ccd1af17. (Reason: CORS request did not succeed).[Learn More]
@Manuel-kl
Copy link

I am getting the same error
If you found a solution, I'll appreciate if you share

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants