Skip to content

Commit

Permalink
Add changeOrigin option in proxyGETRecording middleware
Browse files Browse the repository at this point in the history
This allows OpenVidu Call applications to recover recordings
when OpenVidu Call and OpenVidu Server are running in different
domains.
  • Loading branch information
cruizba committed Jul 1, 2024
1 parent 472eb4d commit 3752335
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions openvidu-call-back/src/controllers/RecordingController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ app.delete('/delete/:recordingId', async (req: Request, res: Response) => {
export const proxyGETRecording = createProxyMiddleware({
target: `${OPENVIDU_URL}/openvidu/`,
secure: CALL_OPENVIDU_CERTTYPE !== 'selfsigned',
changeOrigin: true,
onProxyReq: (proxyReq, req: Request, res: Response) => {
proxyReq.removeHeader('Cookie');
const recordingId: string = req.params.recordingId;
Expand Down

0 comments on commit 3752335

Please sign in to comment.