New auth header since authorization is now used for jwts
This commit is contained in:
@ -3,8 +3,8 @@ import precheck from "./precheck.js";
|
||||
|
||||
export async function onRequestPost(context: RequestContext) {
|
||||
if (
|
||||
context.request.headers.get("authorization") !==
|
||||
`Bearer ${context.env.ROBLOX_APPEALS_TOKEN}`
|
||||
context.request.headers.get("rbx-auth") !==
|
||||
context.env.ROBLOX_APPEALS_TOKEN
|
||||
)
|
||||
return jsonError("Unauthorized", 401);
|
||||
|
||||
|
Reference in New Issue
Block a user