This repository was archived by the owner on Oct 22, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 66} from "./config" ;
77import { ActorDefinition } from "./definition" ;
88
9-
109export function actor <
1110 S ,
1211 CP ,
@@ -43,3 +42,4 @@ export type {
4342 ActorContextOf ,
4443 ActionContextOf ,
4544} from "./definition" ;
45+ export { ALLOWED_PUBLIC_HEADERS } from "./router-endpoints" ;
Original file line number Diff line number Diff line change @@ -470,7 +470,9 @@ export const HEADER_CONN_TOKEN = "X-RivetKit-Conn-Token";
470470 *
471471 * Used for CORS.
472472 **/
473- export const ALL_PUBLIC_HEADERS = [
473+ export const ALLOWED_PUBLIC_HEADERS = [
474+ "Content-Type" ,
475+ "User-Agent" ,
474476 HEADER_ACTOR_QUERY ,
475477 HEADER_ENCODING ,
476478 HEADER_CONN_PARAMS ,
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import type { Transport } from "@/actor/protocol/message/mod";
55import type { ToClient } from "@/actor/protocol/message/to-client" ;
66import { type Encoding , serialize } from "@/actor/protocol/serde" ;
77import {
8- ALL_PUBLIC_HEADERS ,
8+ ALLOWED_PUBLIC_HEADERS ,
99 HEADER_ACTOR_ID ,
1010 HEADER_ACTOR_QUERY ,
1111 HEADER_AUTH_DATA ,
@@ -137,7 +137,7 @@ export function createManagerRouter(
137137 ...corsConfig ,
138138 allowHeaders : [
139139 ...( corsConfig ?. allowHeaders ?? [ ] ) ,
140- ...ALL_PUBLIC_HEADERS ,
140+ ...ALLOWED_PUBLIC_HEADERS ,
141141 "Content-Type" ,
142142 "User-Agent" ,
143143 ] ,
You can’t perform that action at this time.
0 commit comments