Skip to content
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

fix(server): separate initial state for vue #1

Open
wants to merge 2 commits into
base: master
from
Open

Conversation

@azu
Copy link
Owner

azu commented Aug 8, 2019

It will fix client-site template injection issue of the app

image

https://vue-client-side-template-injection-example.azu.now.sh/?name=%7B%7Bthis.constructor.constructor(%27alert(%22foo%22)%27)()%7D%7D

Changes

  • Separate template and data model
  • Write data-initial-state={{State}} from server
  • Use dataset.initialState in client
@azu

This comment has been minimized.

Copy link
Owner Author

azu commented Aug 9, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.