mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 08:02:01 +00:00
Use isJSON: true for better perf and security
This commit is contained in:
parent
f4ca19ee73
commit
f808892b68
@ -12,7 +12,7 @@
|
||||
</head>
|
||||
<body <%= m.bodyAttrs.text() %>>
|
||||
<%= 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.app %>" defer></script>
|
||||
</body>
|
||||
|
Loading…
Reference in New Issue
Block a user