mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-24 02:30:13 +00:00
Add example of isomorphic cookies for #581
This commit is contained in:
@@ -2,7 +2,8 @@
|
||||
ViewData["Title"] = "Home Page";
|
||||
}
|
||||
|
||||
<div id="react-app" asp-prerender-module="ClientApp/dist/main-server">Loading...</div>
|
||||
<div id="react-app" asp-prerender-module="ClientApp/dist/main-server"
|
||||
asp-prerender-data="new { cookies = ViewContext.HttpContext.Request.Cookies }">Loading...</div>
|
||||
|
||||
@section scripts {
|
||||
<script src="~/dist/main-client.js" asp-append-version="true"></script>
|
||||
|
||||
Reference in New Issue
Block a user