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 Problem to solve - ajax call to get JSON #9

Open
scheidelerl opened this issue Dec 7, 2018 · 0 comments
Open

CORS Problem to solve - ajax call to get JSON #9

scheidelerl opened this issue Dec 7, 2018 · 0 comments

Comments

@scheidelerl
Copy link
Collaborator

var use_corsanywhere = true;
var corsanywhere_url = '';
if (use_corsanywhere) {
corsanywhere_url = 'https://cors-anywhere.herokuapp.com/';
}
var seealso_url = corsanywhere_url + 'https://beacon.findbuch.de/seealso/pnd-aks?format=seealso&id=' + id.toUpperCase() + '&callback';

var use_corsanywhere = true;
var corsanywhere_url = '';
if (use_corsanywhere) {
corsanywhere_url = 'https://cors-anywhere.herokuapp.com/';
}
var seealso_url = corsanywhere_url + 'https://beacon.findbuch.de/seealso/pnd-aks?format=seealso&id=' + id.toUpperCase() + '&callback';

Without cors-anywhere:
The response to the CORS request is missing the required Access-Control-Allow-Origin header, which is used to determine whether or not the resource can be accessed by content operating within the current origin.

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

1 participant