Skip to content

Instantly share code, notes, and snippets.

@janniks
Created July 1, 2022 17:17
Show Gist options
  • Save janniks/3bec6caf8bbc364e1d92cded68d855d8 to your computer and use it in GitHub Desktop.
Save janniks/3bec6caf8bbc364e1d92cded68d855d8 to your computer and use it in GitHub Desktop.
Stacks.js Improvements — global fetch options
import { setFetchOptions } from '@stacks/common';
setFetchOptions({
headers: [
['X-Header', 'Hello header!'],
],
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment