30 lines
No EOL
942 B
Text
30 lines
No EOL
942 B
Text
@model IEnumerable<IdentityServer8.EntityFramework.Entities.ClientCorsOrigin>
|
|
@{
|
|
ViewBag.Title = Localizer["Client"];
|
|
}
|
|
|
|
@{
|
|
ViewData["Title"] = "Edit Allowed CORS Origins";
|
|
ViewData["addAction"] = "AddCorsOrigin";
|
|
ViewData["removeAction"] = "RemoveCorsOrigin";
|
|
ViewData["rowKey"] = "CORS Origin";
|
|
ViewData["valueField"] = "Origin";
|
|
ViewData["inputName"] = "origin";
|
|
ViewData["placeholder"] = "https://app.example.com";
|
|
ViewData["clientId"] = Model.FirstOrDefault()?.ClientId ?? 0;
|
|
}
|
|
|
|
<h2>Allowed CORS Origins</h2>
|
|
|
|
<p class="text-muted">
|
|
Origins allowed to call the token and discovery endpoints from a
|
|
browser via CORS. Only required for JavaScript clients running in
|
|
the user's browser. Origin = scheme + host + port, no trailing
|
|
slash.
|
|
</p>
|
|
|
|
@await Html.PartialAsync("_EditableStringList", Model)
|
|
|
|
<p>
|
|
<a asp-action="Edit" asp-route-id="@ViewData["clientId"]">Back to client</a>
|
|
</p> |