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

    The 'rspirep' directive is deprecated in favor of 'http-response replace-header'

    Scheduled Pinned Locked Moved General pfSense Questions
    3 Posts 3 Posters 163 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.
    • B
      blueh2o
      last edited by blueh2o

      Re: [WARNING] The 'rspirep' directive is deprecated in favor of 'http-response replace-header' and will be removed in next version.

      I've had this setting for longer than I can remember:

      rspirep ^(Set-Cookie:.*)\ Domain=domain.com(.*) \1\ Domain=server.domain.com\2 if hdr_set_cookie_dom
      

      And of course it just broke on update, and I'm having a hard time figuring out what the syntax is to replace it with http-response replace-header.
      Can anyone assist me?

      1 Reply Last reply Reply Quote 0
      • stephenw10S
        stephenw10 Netgate Administrator
        last edited by

        This is in HAProxy?

        What did you update from?

        Steve

        1 Reply Last reply Reply Quote 0
        • jimpJ
          jimp Rebel Alliance Developer Netgate
          last edited by

          The built-in setting for cookie protection uses the new syntax in the newest version of the package on Plus 23.05.1/CE 2.7.0:
          https://redmine.pfsense.org/issues/13343

          You may be able to use the syntax from that as a guide for your custom settings if you even still need them rather than using the GUI options.

          Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

          Need help fast? Netgate Global Support!

          Do not Chat/PM for help!

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