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

Request header field Authorization is not allowed by Access-Control-Allow-Headers #71

Open
jeanmw opened this issue Aug 17, 2022 · 1 comment

Comments

@jeanmw
Copy link

jeanmw commented Aug 17, 2022

On Safari, when making a request as documented with the Authorization header (with bearer token) I get the error:

Request header field Authorization is not allowed by Access-Control-Allow-Headers

This seems to indicate that this package cannot actually accept the Authorization header for private notion docs.
Is there a way around this?

Does this mean that the only way to use this package for private notion docs is to host our own worker?

@jeanmw
Copy link
Author

jeanmw commented Aug 17, 2022

(this happens when hitting a GET request to https://notion-api.splitbee.io/v1/page/${id} where the id is a private notion doc and the headers contain Authorization: Bearer ${token}`).

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