Skip to content

Highlighting local PDFs #48

@chaecramb

Description

@chaecramb

Currently PDF highlighter doesn't work for local PDFs. From the dev console it looks like it's blocked from accessing it due to CORS:

?url=http://localhost:3333/local-asset/.../....pdf:1 Access to fetch at 'http://localhost:3333/local-asset/.../....pdf' 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.

Any idea if there would be a way around this, or is it simply not possible for plugins to access local files in Roam?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions