CookieAuthenticationOptions.AccessDeniedPath 属性

定义

AccessDeniedPath 属性通知中间件,它应将传出的 403 禁止访问状态代码更改为 302 重定向到给定路径。

public:
 property Microsoft::AspNetCore::Http::PathString AccessDeniedPath { Microsoft::AspNetCore::Http::PathString get(); void set(Microsoft::AspNetCore::Http::PathString value); };
public Microsoft.AspNetCore.Http.PathString AccessDeniedPath { get; set; }
member this.AccessDeniedPath : Microsoft.AspNetCore.Http.PathString with get, set
Public Property AccessDeniedPath As PathString

属性值

适用于