Skip to content

Add withCredentials prop to provider #58

@ofek-frame

Description

@ofek-frame

Currently, should you want to show a PDF behind an authenticated path, you must fetch() it with crossOrigin: 'use-credentials', then create a blob for it.
While this works - it would be much easier if the library externalized some arguments (In this case, use credentials) of its internal fetch.

For comparison - react-pdf has it with the document option WithCredentials: true or httpHeaders

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions