mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 16:43:55 +00:00
Use isJSON: true for better perf and security
This commit is contained in:
parent
f4ca19ee73
commit
f808892b68
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user