i'm using sveltekit and whenever i try to use sessionStorage I get "access denied"…
- User
i'm using sveltekit and whenever i try to use sessionStorage I get "access denied" error. it works on edge and chrome but doesn't work on opera GX. what's causing it? What do i need to do?
- Assistant
The "access denied" error you're experiencing with sessionStorage in SvelteKit is likely due to a security feature called "site isolation" that is enabled by default in Opera GX. Site isolation is a security feature that helps protect users from cross-site scripting (XSS) attacks by isolating web pages from each other.
To allow sessionStorage to work properly in Opera GX, you can disable site isolation for your SvelteKit app. Here's how to do it:
Open Opera GX and navigate to the following URL: opera://flags/#site-isolation-trial-opt-out Click the "Disabled" option from the dropdown menu next to "Site isolation trial opt-out". Restart Opera GX. After disabling site isolation for your SvelteKit app, sessionStorage should work as expected. Keep in mind that disabling site isolation can reduce your security posture, so you may want to re-enable it once you're done using your app.
If you're still experiencing issues with sessionStorage after disabling site isolation, you may want to check that your SvelteKit app is running on HTTPS, as sessionStorage only works over HTTPS by default.
- User
Thank you for your help, but unfortunately I tried this and it didn't help.
My SvelteKit app is running on HTTPS so can you suggest any additional help so I can resolve my issue?
Thanks.
- Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Identical first prompt
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)