Use isJSON: true for better perf and security

This commit is contained in:
Sébastien Chopin 2016-12-28 12:38:09 +01:00
parent f4ca19ee73
commit f808892b68

View File

@ -12,7 +12,7 @@
</head> </head>
<body <%= m.bodyAttrs.text() %>> <body <%= m.bodyAttrs.text() %>>
<%= APP %> <%= APP %>
<script type="text/javascript" defer>window.__NUXT__=<%= serialize(context.nuxt) %></script> <script type="text/javascript" defer>window.__NUXT__=<%= serialize(context.nuxt, { isJSON: true }) %></script>
<script src="<%= files.vendor %>" defer></script> <script src="<%= files.vendor %>" defer></script>
<script src="<%= files.app %>" defer></script> <script src="<%= files.app %>" defer></script>
</body> </body>