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

5th Star suggestion: CORS compatibility #8

Open
yum-yab opened this issue Dec 14, 2020 · 2 comments
Open

5th Star suggestion: CORS compatibility #8

yum-yab opened this issue Dec 14, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@yum-yab
Copy link
Contributor

yum-yab commented Dec 14, 2020

Using CORS compatibility for ontologies as the 5th star of archivo:

Proposed qualifying criteria for the 5th star:

  • an ontology allows a CORS request when a preflight request was sent from at least two different domains.
  • a CORS response allows to use a Content-Type header to preform content-negotiation in the browser RDF client.

As suggested in the forum.

@yum-yab yum-yab added the enhancement New feature or request label Dec 14, 2020
@berezovskyi
Copy link

a CORS response allows to use a Content-Type header to preform content-negotiation in the browser RDF client.

Actually, I got this one wrong. We need it in our APIs because they are read/write, but generally you'd only need Accept header for this part of conneg and https://fetch.spec.whatwg.org/#cors-safelisted-request-header allows / and + by default.

@berezovskyi
Copy link

Also, suggested by @kurzum in another thread, it may be better to keep the number of passing checks separate from the number of stars awarded to keep it sane.

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

No branches or pull requests

2 participants