rabilrbl / jiotv_go

Unlock the magic of JioTV across all your devices, without the need for the JioTV App. Crafted with love in Golang for a delightful blend of speed and efficiency! 🌟✨
https://jiotv_go.rabil.me/
Other
299 stars 87 forks source link

feat: Allow iFrame of /player to cross-origin #216

Closed rohit267 closed 8 months ago

rohit267 commented 8 months ago

Feature description

The URL /player is can only be iframed SAMEORIGIN

Solution

Please removethe x-frame-options header.

Additional context

No response

Acknowledgements

rabilrbl commented 8 months ago

@rohit267 That is added for extra security and to prevent abuse.

May I know the reason?

rohit267 commented 8 months ago

@rohit267 That is added for extra security and to prevent abuse.

May I know the reason?

I am trying to build a react native app for JioTV. Everywhere it works fine but in firetv, when the resolution gets updated, the video get's cropped out of the screen. Trying to implement a webview where I need to embed your '/player'

rabilrbl commented 8 months ago

The cropping part because the CSS is designed for 16:9 aspect ratio, a better design should be implemented. I am bad with plain css.

I won't change the security headers for your particular use-case. You can clone this repo and make changes, remove the helmet middleware. Further discussions can be done in the telegram support group.

Closing.