diff --git a/src/shared/payload/payload-sdk.ts b/src/shared/payload/payload-sdk.ts index 6ef38ab..9fd0ad1 100644 --- a/src/shared/payload/payload-sdk.ts +++ b/src/shared/payload/payload-sdk.ts @@ -1341,7 +1341,11 @@ const getToken = async (): Promise => { const injectAuth = async (init?: RequestInit): Promise => ({ ...init, - headers: { ...init?.headers, Authorization: `JWT ${await getToken()}` }, + headers: { + ...init?.headers, + Authorization: `JWT ${await getToken()}`, + "x-rate-limit-skip": import.meta.env.PAYLOAD_RATING_LIMIT_SKIP_TOKEN ?? "", + }, }); const logResponse = (res: Response) => console.log(res.status, res.statusText, res.url);