Quantcast
Channel: HAProxy community - Latest topics
Viewing all articles
Browse latest Browse all 4723

Transposing Nginx sub-filters

$
0
0

@weekendatbernies wrote:

New to HAProxy, is there an equivalent configuration for Nginx sub filters? The concept is to bring internal subdomain websites into an iframe and not allow the display of these sites outside of the iframe.

Current Nginx sub_filters:

sub_filter </head> '</head><script>window.addEventListener("message", function(event){ if( event.origin.match(/^https?:\/\/(localhost(:\d+)?|(app.)?example.com)/) ) eval(event.data);}, false); if(window == top)top.location = "//example.com/#/welcome";</script>'; sub_filter_once on; sub_filter_types *;

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4723

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>