Update documentation for nativeFetch to clarify CORS restrictions and API design

This commit is contained in:
Kwaroran
2024-12-21 01:15:40 +09:00
parent 6860382bf1
commit 45e8ca5ed6

View File

@@ -48,7 +48,7 @@ Fetches a URL with a native API, which doesn't have CORS restrictions.
### `nativeFetch(url: string, arg: NativeFetchArg = {}): Promise<NativeFetchResults>`
Fetches a URL with the native fetch API, which has CORS restrictions.
Fetches a URL with the native API, which doesn't have CORS restrictions. this API is designed as a subset of [fetch api](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) with a few differences.
#### Arguments