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

Fix No 'Access-Control-Allow-Origin' error or provide better warning #31

Open
peterdesmet opened this issue Aug 11, 2015 · 0 comments
Open

Comments

@peterdesmet
Copy link

As mentioned during the public launch, some feeds cannot be accessed by the DCAT validator because of:

XMLHttpRequest cannot load ... No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://validator.dcat.be' is therefore not allowed access.

For which the DCAT validator will show the warning:

The URI you have entered is not valid.

I think it is possible to solve this error (see e.g. this Stack Overflow thread, where e.g. jsonp is suggested).

If that is not feasible I would provide another error message, such as:

The server at the URI you have entered is blocking access to the content.

That way, it is more clear that the user hasn't made a typo (i.e. the URI is valid), but that it has something to do beyond their control.

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