Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    HAProxy possible to use "dynamic" header?

    Scheduled Pinned Locked Moved pfSense Packages
    2 Posts 1 Posters 1.1k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      DonZalmrol
      last edited by

      Hi,

      I'm fine tuning my HAProxy settings for additional security through removing and adding headers.

      One of such headers is the X-Powered-By header

      I wonder if its possible to dynamically add the the domain name or URL the end-user is connecting with, I work with multiple domains so it should reflect.

      E.g.:

      rspadd X-Powered-By:\ dynamicSiteURLHere
      

      Or

      rspadd X-Powered-By:\ dynamicDomainNameHere
      

      Lastly I have one header that I can't seem to get working

      rspadd X-Content-Security-Policy:\ default-src: 'self';\ img-src:*;\ media-src:*;\ data:*;
      

      not working on 'self', tried 'self' and other combinations.

      Thanks in advance!

      D 1 Reply Last reply Reply Quote 0
      • D
        DonZalmrol @DonZalmrol
        last edited by

        Nobody? :)

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.