title: Can I use fetch to call the Notion API?
body: <p>I want to use Notion as a content gateway for a SPA. Can I use the Notion API from fetch? I'm trying to use fetch to get the data but It's not working because of CORS.</p>
  <pre class="lang-js prettyprint-override"><code>let notion = fetch(import.meta.env.VITE_NOTION_API_URL+'/databases/'+import.meta.env.VITE_NOTION_APP_DATABASE+'/query', {
        method: 'POST',
        mode: 'cors',
        credentials: 'omit',
        headers: {
          'Content-Type': 'application/json',
          &quot;Authorization&quot;: `Bearer ${import.meta.env.VITE_NOTION_API_SECRET}`,
          &quot;Notion-Version&quot;: `${import.meta.env.VITE_NOTION_API_VERSION}`,
        }
      })
  </code></pre>
  <p>It's this possible?</p>