-
Notifications
You must be signed in to change notification settings - Fork 22
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
task-ELEMENTS-815-upgrade-PDF.js-2.0.943 #307
Conversation
It is really hard to tell but 7d14710#diff-4ae27d25bd4fa36331f27e9ae0111d87R7368 has been committed some time ago and not sure we should double check that again ... |
I'm not sure why exactly it was added in the first place, we should check with @nelsonsilva.
Do we want/need to allow cross-site requests with credentials? Note that since then, pdf.js has switched to
|
I'd rather keep cross-site requests with credentials just so the element acts as any other resource loading element (ie img) in which case the browser would send the credentials by default. The only reason we need to set this flag is because the implementation relies on fetch requests, which I'd rather keep as an "implementation detail". If we did not include the credentials by default we'd need to make it configurable since there are several use cases where the Nuxeo server is remove (dev server, static deployment, etc) so I'd rather keep it simple for now. |
9d4658c
to
375de40
Compare
Applied the patch below to allow viewing a file in a static UI connected to a remote server with a CORS configuration allowing cross-domain requests:
More precisely, without the patch:
|
👍 |
👍 |
1 similar comment
👍 |
No description provided.