• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
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 May 17, 2022, 7:06 PM

    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 May 23, 2022, 12:03 PM Reply Quote 0
    • D
      DonZalmrol @DonZalmrol
      last edited by May 23, 2022, 12:03 PM

      Nobody? :)

      1 Reply Last reply Reply Quote 0
      1 out of 2
      • First post
        1/2
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
        This community forum collects and processes your personal information.
        consent.not_received