To add the RetainHeader policy to the Akana API Gateway:

  1. Sign on to Akana Policy Manager and click Tenant in the left navigation.
  2. Under Policies, click Operational Policies.
  3. Select Add Policy and choose Private Operational Script Policy from the Type drop-down list.

    A screenshot of the Select Policy Creation Option page in Akana Policy Manager.
  4. Click Next.
  5. Enter Policy Name and Description, click Finish, and then click Close.
    A screenshot of the Specify Policy Details page in Akana Policy Manager.
  6. Navigate to the Workbench tab.
  7. In the Private Operational Script Policy section, select the policy name and click Modify.
    A screenshot of the Workbench tab in Akana Policy Manager.
  8. For Script Language, select JavaScript from the drop-down list.
  9. Copy the contents of the retain-header-policy.js script and paste them into Expression.
  10. For Function, select Pre-policy Auditing from the drop-down list.
    A screenshot of the Modify Script Policy page in Akana Policy Manager.
  11. Click Finish and then click Close.
  12. Under the WorkFlow Actions, click Activate Policy to activate the RetainHeader policy.