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

self-signed certificates #120

Open
valaises opened this issue Feb 2, 2023 · 1 comment
Open

self-signed certificates #120

valaises opened this issue Feb 2, 2023 · 1 comment

Comments

@valaises
Copy link

valaises commented Feb 2, 2023

Hi! Is there any way to provide self-signed certificates through your library -- FetchH2, or how could I provide the rejectedUnauthorized parameter? Thanks!

@mctrafik
Copy link

mctrafik commented Feb 12, 2024

+1. I saw this question and thought it wasn't supported, but this works:

import { fetch, setup } from 'fetch-h2';

  setup({
    session: {
      rejectUnauthorized: false,
    },
  });

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

2 participants