API Connect

 View Only
  • 1.  Need to remove the particular response headers

    Posted Tue December 05, 2023 01:08 AM

    Hello Team,

    We need remove  "X-Client-IP" from response headers ? If yes please guide, Because I have tried using gatewayscript, Set Variable in a single API which is working but we want to do it for all apis at a time.

    DATAPOWER(v5 compatible) version - 10.5.0.1 and APIC version - 10.0.5.1.



    ------------------------------
    Suraj Sakpal
    ------------------------------


  • 2.  RE: Need to remove the particular response headers

    Posted Sun December 10, 2023 06:28 AM

    Use global post response policy if you want it to implement for all responses.  You can use var hm = require('header-metadata'); to remove the current headers.



    ------------------------------
    Gaurav Balyan
    ------------------------------



  • 3.  RE: Need to remove the particular response headers

    Posted Sat January 20, 2024 12:14 PM

    For remove X client IP from header. You can do by modify the response header. Firstly you create the processing policy and then add the API assembly make sure it is apply globally. For remove the X Client IP header use delete operation in the GatewayScript.  For more information https://www.ibm.com/docs/en/datapower-gatewaypython training 



    ------------------------------
    Sofiya Willams
    ------------------------------