niutech / x-frame-bypass

Web Component extending IFrame to bypass X-Frame-Options: deny/sameorigin
https://niutech.github.io/x-frame-bypass/
Apache License 2.0
669 stars 267 forks source link

[Request] Make proxy usage optional through an attribute #37

Open The-MAZZTer opened 3 years ago

The-MAZZTer commented 3 years ago

It looks like you could call .load directly and do this but it would be nice to have this possible with the src= value as well. In fact the proxies could also be configurable in this manner as well.

For example adding a proxies attribute with a space-separated list of proxies (if you make it blank, no proxies are used).

This would be useful for using your own proxy, or in environments where a proxy is not required for CORS bypass (eg Chrome extension pages with the proper host_permissions).