antfu / sd-webui-qrcode-toolkit

Anthony's QR Toolkit for Stable Diffusion WebUI
https://qrcode.antfu.me/
MIT License
634 stars 48 forks source link

A1111 Extension gets: 500 Failed to read the 'localStorage' property from 'Window': Access is denied for this document. #2

Closed Davey212 closed 1 year ago

Davey212 commented 1 year ago

Describe the bug

In version ce75e181 of extension, Message occurs in Edge and Chrome with all extensions disabled and tracking prevention turned off

Reproduction

Edge and Chrome browsers

System Info

A1111: version: v1.4.0  •  python: 3.10.10  •  torch: 2.0.1+cu118  •  xformers: N/A  •  gradio: 3.32.0  •  checkpoint: 77b7dc4ef0  

System:
    OS: Windows 10 10.0.19045
    CPU: (12) x64 Intel(R) Core(TM) i7-6800K CPU @ 3.40GHz
    Memory: 7.68 GB / 15.91 GB
  Binaries:
    Node: 14.21.3 - C:\Program Files\nodejs\node.EXE
    npm: 6.14.18 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Chrome: 114.0.5735.199
    Edge: Spartan (44.19041.1266.0), Chromium (114.0.1823.67)

In version ce75e181 of extension, Message occurs in Edge with all extensions disabled and tracking prevention turned off, also happens in Chrome. Extension works in Vivaldi, Brave and FireFox.

This extension does not run completely local?

Used Package Manager

n/a

Validations

ene0s commented 1 year ago

According to chromium ressources it seems this issue is when 3rd parties cookies can't be written (https://www.chromium.org/for-testers/bug-reporting-guidelines/uncaught-securityerror-failed-to-read-the-localstorage-property-from-window-access-is-denied-for-this-document)

Seems it is calling this web app and not running locally : https://qrcode.antfu.me/. Set up an exception in the 'cookies from 3rd parties' in you web browser preferences to allow this domain and the extension will work. Thus said, I'd also prefer for it to run locally.

Davey212 commented 1 year ago

Allowing 3rd party cookies fixed issue.