Update .docs/content/1.Guide/2.fetchers.md

Co-authored-by: William Oldham <github@binaryoverload.co.uk>
This commit is contained in:
mrjvs
2023-09-27 20:49:40 +02:00
committed by GitHub
parent 2abdb02638
commit c4666ffaad

View File

@@ -21,7 +21,7 @@ const fetcher = makeDefaultFetcher(fetch);
## Using fetchers on the browser ## Using fetchers on the browser
when using this library on a browser, you will need a proxy. Browser come with a ton of restrictions on when a webrequest can be made, and to bypass those restrictions you will need a cors proxy. when using this library on a browser, you will need a proxy. Browser come with a ton of restrictions on when a webrequest can be made, and to bypass those restrictions you will need a cors proxy.
The movie-web team has a proxy pre-made and pre-configured for you to use. for more information you can check out [movie-web/simple-proxy](https://github.com/movie-web/simple-proxy). After installing you can use this proxy like so: The movie-web team has a proxy pre-made and pre-configured for you to use. For more information, check out [movie-web/simple-proxy](https://github.com/movie-web/simple-proxy). After installing, you can use this proxy like so:
```ts ```ts
const fetcher = makeSimpleProxyFetcher("https://your.proxy.workers.dev/", fetch); const fetcher = makeSimpleProxyFetcher("https://your.proxy.workers.dev/", fetch);