Skip to content

Commit 03fe8e7

Browse files
fix: add Content-Type header to realtime auth request (#471)
1 parent b8d1c53 commit 03fe8e7

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

ee/apps/billing/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "@uninbox-ee/billing",
33
"license": "COMMERCIAL",
44
"private": true,
5+
"type": "module",
56
"exports": {
67
"./trpc": {
78
"types": "./trpc/index.ts"

packages/realtime/client.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ export default class RealtimeClient {
2727
method: 'POST',
2828
credentials: 'include',
2929
headers: {
30-
'org-shortcode': `${orgShortCode}`
30+
'org-shortcode': orgShortCode,
31+
'Content-Type': 'application/json'
3132
}
3233
});
3334
if (!res.ok) {

0 commit comments

Comments
 (0)