We are developing an app using a webos 22-based simulator and real equipment. When calling our internal backend API, no error occurs in the simulator, but an error occurs on the actual TV equipment. The error details are as follows.
Also, the error does not occur when testing on a webos 23 physical TV with the same ipk file.
Below are the header details for the request.
If the request is successfully performed, sec-fetch-mode in the request header is set to cors.
Please share with us the following at developer@lge.com.
- Your app .ipk file
- Steps to reproduce the issue
And the following information of the webOS TV 22 and 23 are also required. (You can check this in the Settings > General > About This TV.)
- TV model name:
- TV software version:
- webOS TV version: (This can be found when you click the TV model name in the About This TV menu.)
- Region:
I have encountered this issue, the reason the issue occurs is because the response header coming from the server has a cross-origin-resource-policy of “same-origin”,
If you have the ability to change the response header to “cross-origin” would fix the issue based on my experience,
what i did, to prevent setting CORP to cross-origin to all response,
I created a service that acts as a proxy to the TV app where i set the Origin to a string value, the backend recognizes to set the CORP to “cross-origin” programmatically