-1

I am trying to build a Chrome extension with React that does not require a backend in order to run and uses the Notion API to access users' workspaces. I tried to fetch data from the API but I still can't pass through this CORS error.

For instance, this is the full error message when trying to reach the search endpoint:

enter image description here

I know that I can access the API through an intermediate server but I am trying to make the application work just by installing it on a browser and without the need for a server so that the communication is directly between the Chrome extension and notion API.

Is there any way or workaround to make it work? Is it possible to use Next.js SSR for this purpose? or a CDN like Cloudflare or maybe Google App Scripts? Is there any other solution that by any chance can solve this problem?

Tarek Hammami
  • 101
  • 2
  • 6

0 Answers0