Adding the RetainHeader policy
About this task
To add the RetainHeader policy to the Akana API Gateway:
Steps
-
Sign on to Akana Policy Manager and click Tenant in the left navigation.
-
Under Policies, click Operational Policies.
-
Select Add Policy and choose Private Operational Script Policy from the Type drop-down list.
-
Click Next.
-
Enter Policy Name and Description, click Finish, and then click Close.
-
Navigate to the Workbench tab.
-
In the Private Operational Script Policy section, select the policy name and click Modify.
-
For Script Language, select JavaScript from the drop-down list.
-
Copy the contents of the
retain-header-policy.js
script and paste them into Expression. -
For Function, select Pre-policy Auditing from the drop-down list.
-
Click Finish and then click Close.
-
Under the WorkFlow Actions, click Activate Policy to activate the RetainHeader policy.