Error while using nginx proxy to connect remote server with local host

I am trying to connect my local host with remote server hosted on ubuntu but cors error came some suggested proxying so i did proxying it created some error like below

##in console log

RTC.js:833 Uncaught TypeError: m.a.enumerateDevices is not a function
at Function.value (RTC.js:833)
at e.value (JitsiMediaDevices.js:95)
at example.js:298

RTCUtils.js:968 Uncaught (in promise) TypeError: Cannot read property ‘getUserMedia’ of undefined
at RTCUtils.js:968
at new Promise ()
at t.value (RTCUtils.js:967)
at t. (RTCUtils.js:1320)