fetch-h2 icon indicating copy to clipboard operation
fetch-h2 copied to clipboard

self-signed certificates

Open valaises opened this issue 2 years ago • 1 comments

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

valaises avatar Feb 02 '23 18:02 valaises

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

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

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

mctrafik avatar Feb 12 '24 04:02 mctrafik