Comments (3)
relaxed
is set to true when displaying any of the built-in example, tutorial, or blog post REPLs. Enabling allow-same-origin
unconditionally is not an option, as it would permit malicious REPLs to steal credentials. Having some sort of toggle button for the user to opt in to reduced security when viewing a REPL has been discussed, but I don't remember whether there's a specific issue for it anywhere.
from sites.
Fair enough. Is there some other configuration change that would allow for use of indexedDb and localStorage within the REPLs? I know browser database connections are allowed in REPL.it, but they may be less security conscious. I feel Svelte is a pretty powerful tool when paired with local storage and as such I would like to be able to post working examples through the Svelte REPL (where others can play with the code without setting up their own environment). I want to see Svelte thrive as it is favorite client-side framework of mine.
from sites.
Not sure if it would be possible to replace these objects with mock versions that either keeps data in memory, or limits scope of access to localStorage by prefixing keys with a random string? This will likely pose no security threat.
from sites.
Related Issues (20)
- REPL user menu is inaccessible HOT 3
- REPL breaks when deleting attributes HOT 2
- Todo app layout broken in animate tutorial
- Improve the component-binding example HOT 2
- Double clicking a filename other than `App.svelte` then clicking the editing area erases all the component
- Add emmet to the Repl HOT 1
- Svelte pages with REPLs start draining significant resources on Firefox when left open for a while
- Svelte REPL component name crash
- Allow loading a local folder when working on the repl
- Blog light mode style has red subtext
- Copy button in code blocks scrolls with overflowing content
- Svelte docs: ts-toggle button doesn't work HOT 2
- REPL: Add `HTML Output` tab
- HN: add https://news.ycombinator.com/best
- Unify Svelte and SvelteKit Websites HOT 1
- REPL broken / stuck on "loading editor"
- Store Svelte version in REPL and add it to `/apps` links
- REPL: Rename of file without changing name clears the file contents
- REPL: "noop" is not exported by "https://unpkg.com/[email protected]/internal/index.js" HOT 2
- It Is Time To Redesign Svelte and SvelteKit Websites HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sites.