-
-
Notifications
You must be signed in to change notification settings - Fork 2k
The demo app does not work on Stackblitz #7277
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
After disabling https://stackblitz.com/edit/sveltejs-kit-template-default-dycjhr?file=svelte.config.js |
just remembered that Would not recommend that for our default template, but the stackblitz specific fork could use it to guard against usage outside of stackblitz. |
Is it going to be someone's responsibility to constantly be updating the StackBlitz fork? Can we instead somehow bake this change into the action that generates https://github.com./sveltejs/kit-template-default? |
The only way I could make this work is to not use cookies anymore. I therefore see three options:
I'm leaning towards 2. Having the Sverdle be present on Stackblitz is not a priority IMO, all other starter templates on there are pretty minimal. |
Agreed. I’ve started to really enjoy using stackblitz for issue reproductions and testing things. A stripped down version is welcome as I usually delete most of the pages to simplify it. Also, is there a way to have a typescript template at the ready? I could not find a way to do it personally |
* [fix] remove Sverdle from Stackblitz template Fixes #7277 * fix, docs
Describe the bug
The Sverdle demo app does not fully function on Stackblitz. Entering a guess and hitting Enter produces the following error:
This is because
sverdle?/enter
returns "Cross-site POST form submissions are forbidden"Reproduction
Go to sveltekit.new, go to Sverdle, enter a guess, and hit enter. The error will be displayed.
Logs
No response
System Info
Severity
serious, but I can work around it
Additional Information
In Discord, Rich suggested that maybe have a branch where CSRF protection is disabled specifically for the sveltekit.new demo. We want to keep it enabled in the normal demo case.
The text was updated successfully, but these errors were encountered: