How can we update request origin in the api call for CORS

Hi All,

We are facing CORS issue when we calling API’s from HTML TV APP. As from backend its limited to some origin. We have debugged and found from Samsung TV the origin is sent as file:// rather some http domain as we didnt host this applications. We have tried to enable this origin for file:// but still we are facing issues. Only if we enable Access-Control-Allow-Origin * we able to access the api from samasung tv apps. Any suggestion here.