feat(ui): 모든 중요 페이지에 [Authorize] 인가 가드 적용하여 보안 강화
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
@page "/collection"
|
@page "/collection"
|
||||||
|
@attribute [Authorize]
|
||||||
@using QuantEngine.Web.Client.Services
|
@using QuantEngine.Web.Client.Services
|
||||||
@inject ApiClient ApiClient
|
@inject ApiClient ApiClient
|
||||||
@inject ILogger<Collection> Logger
|
@inject ILogger<Collection> Logger
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
@page "/"
|
@page "/"
|
||||||
|
@attribute [Authorize]
|
||||||
@using QuantEngine.Core.Infrastructure
|
@using QuantEngine.Core.Infrastructure
|
||||||
@inject HttpClient Http
|
@inject HttpClient Http
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
@page "/operations"
|
@page "/operations"
|
||||||
|
@attribute [Authorize]
|
||||||
@using QuantEngine.Core.Infrastructure
|
@using QuantEngine.Core.Infrastructure
|
||||||
@inject HttpClient Http
|
@inject HttpClient Http
|
||||||
|
|
||||||
|
|||||||
@@ -29,6 +29,7 @@ def _request_json(url: str, token: str, method: str = "GET", body: dict[str, Any
|
|||||||
headers = {
|
headers = {
|
||||||
"Authorization": f"token {token}",
|
"Authorization": f"token {token}",
|
||||||
"Accept": "application/json",
|
"Accept": "application/json",
|
||||||
|
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36",
|
||||||
}
|
}
|
||||||
if body is not None:
|
if body is not None:
|
||||||
headers["Content-Type"] = "application/json"
|
headers["Content-Type"] = "application/json"
|
||||||
|
|||||||
Reference in New Issue
Block a user