I have some embedded PDFs that are uploaded in the standard way (drag & drop, such that the file is stored at https://firebasestorage.googleapis.com), and some others that are shared from Dropbox (e.g. https://www.dropbox.com/s/t4ac5mwi1e2uvhm/test.pdf?raw=1).
When PDF highlighter is disabled, both types of URLs load properly as PDF embeds in Roam Research. However, when PDF highlighter is enabled, the Dropbox URLs do not load, and the following error is shown:
Access to fetch at 'https://www.dropbox.com/s/t4ac5mwi1e2uvhm/test.pdf?raw=1' from origin 'https://roampdf.web.app' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
GET https://www.dropbox.com/s/t4ac5mwi1e2uvhm/test.pdf?raw=1 net::ERR_FAILED
e @ fetch_stream.js:134
value @ fetch_stream.js:77
(anonymous) @ api.js:1543
(anonymous) @ message_handler.js:329
value @ message_handler.js:328
_onComObjOnMessage @ message_handler.js:150
I thought this might be because the Google Cloud PDFs are requested with an API token, but even if you remove the token, it still loads fine.
Is there any way around this? It would be awesome to have all my PDFs stored in Dropbox, where they're linked to corresponding Zotero items, and then have the corresponding notes in Roam for those papers that could still reference the same (rather than duplicated) file -- because then if I add additional annotations on the PDF (e.g. some handwritten notes on iPad), they'll still show up on the PDF in Roam.
I have some embedded PDFs that are uploaded in the standard way (drag & drop, such that the file is stored at https://firebasestorage.googleapis.com), and some others that are shared from Dropbox (e.g. https://www.dropbox.com/s/t4ac5mwi1e2uvhm/test.pdf?raw=1).
When PDF highlighter is disabled, both types of URLs load properly as PDF embeds in Roam Research. However, when PDF highlighter is enabled, the Dropbox URLs do not load, and the following error is shown:
I thought this might be because the Google Cloud PDFs are requested with an API token, but even if you remove the token, it still loads fine.
Is there any way around this? It would be awesome to have all my PDFs stored in Dropbox, where they're linked to corresponding Zotero items, and then have the corresponding notes in Roam for those papers that could still reference the same (rather than duplicated) file -- because then if I add additional annotations on the PDF (e.g. some handwritten notes on iPad), they'll still show up on the PDF in Roam.