Skip to content

Commit

Permalink
fix: add Content-Type header to realtime auth request (#471)
Browse files Browse the repository at this point in the history
  • Loading branch information
BlankParticle committed May 23, 2024
1 parent b8d1c53 commit 03fe8e7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions ee/apps/billing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "@uninbox-ee/billing",
"license": "COMMERCIAL",
"private": true,
"type": "module",
"exports": {
"./trpc": {
"types": "./trpc/index.ts"
Expand Down
3 changes: 2 additions & 1 deletion packages/realtime/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ export default class RealtimeClient {
method: 'POST',
credentials: 'include',
headers: {
'org-shortcode': `${orgShortCode}`
'org-shortcode': orgShortCode,
'Content-Type': 'application/json'
}
});
if (!res.ok) {
Expand Down

0 comments on commit 03fe8e7

Please sign in to comment.