From ded45f15afb4a01e9ad779b376101b9bd37c9d7e Mon Sep 17 00:00:00 2001 From: Lorexia Date: Wed, 4 Oct 2023 10:37:48 +0200 Subject: [PATCH] Add callout to mixFetch page --- sdk/typescript/docs/pages/examples/mix-fetch.mdx | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/sdk/typescript/docs/pages/examples/mix-fetch.mdx b/sdk/typescript/docs/pages/examples/mix-fetch.mdx index 9544d4a62f..7e08663aff 100644 --- a/sdk/typescript/docs/pages/examples/mix-fetch.mdx +++ b/sdk/typescript/docs/pages/examples/mix-fetch.mdx @@ -4,7 +4,7 @@ import { Callout } from 'nextra/components' An easy way to secure parts or all of your web app is to replace calls to [`fetch`](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch) with `mixFetch`: -MixFetch works the same as vanilla `fetch` as it's a proxied wrapper around the original function. Read [this article](https://blog.nymtech.net/mixfetch-like-the-fetch-api-but-via-the-mixnet-82acfd435c62) to learn more about mixFetch. +MixFetch works the same as vanilla `fetch` as it's a proxied wrapper around the original function. Sounds great, are there any catches? Well, there are a few (for now): 1. Currently, the operators of Network Requesters that make the final request at the egress part of the Nym mixnet to @@ -19,10 +19,13 @@ avoid getting a [mixed content](https://developer.mozilla.org/en-US/docs/Web/Sec 4. Workaround for Mixed Content Errors because you might be using `mixFetch` from web app served from HTTPS while connecting a gateway that only listens on a plain websocket, without HTTPS/TLS. -We are currently working on a feature that adds a Secure Websocket (WSS) listener with HTTPS (automatically generated with LetsEncrypt) to Nym's -gateways. +Read [this article](https://blog.nymtech.net/mixfetch-like-the-fetch-api-but-via-the-mixnet-82acfd435c62) to learn more about mixFetch. -While we are adding this feature, you can use a gateway that has Caddy providing HTTPS/WSS by adding this to the options when settings up `mixFetch`: + + We are currently working on a feature that adds a Secure Websocket (WSS) listener with HTTPS (automatically generated with LetsEncrypt) to Nym's + gateways. + While we are adding this feature, you can use a gateway that has Caddy providing HTTPS/WSS by adding this to the options when settings up `mixFetch`: + ```ts import type { SetupMixFetchOps } from '@nymproject/mix-fetch';