I am developing an application in plain apache cordova, I am using the [cordova-plugin-advanced-http] and the app has a Media player with cordova-plugin-media.
The URL used by the Media player and m3u8 is https://example.com/playlist.m3u8 and I need to change the "referer" in order to access the file, but I donĀ“t know how:
I have this in the onDeviceReady method, but nothing changes:
cordova.plugin.http.setHeader('example.com', 'REFERER', 'Value');
I also have tried this whit not luck:
cordova.plugin.http.setHeader('*', 'REFERER', 'http://example.com');