GoogleChromeLabs / browser-fs-access

File System Access API with legacy fallback in the browser
https://googlechromelabs.github.io/browser-fs-access/demo/
Apache License 2.0
1.37k stars 82 forks source link

Failed to execute 'close' on 'UnderlyingSinkBase' #144

Closed niklauslee closed 1 year ago

niklauslee commented 1 year ago

Hi,

Here is the my file save code:

async saveFileAs(data: string) {
    const blob = new Blob([data], { type: "application/json" });
    return await fileSave(blob, {
      extensions: [".json"],
    });
  }

This works fine in my local development (Next.js 13.4). But when I deploy to Vercel, file save not work and show the below exception message.

DOMException: Failed to execute 'close' on 'UnderlyingSinkBase': Blocked by Safe Browsing.

Any advices?

Thank you.

niklauslee commented 1 year ago

It seems caused by Google Safe Browsing. It works well with another domain.