diff --git a/content/nic/installation/integrations/app-protect-waf-v5/compile-waf-policies.md b/content/nic/installation/integrations/app-protect-waf-v5/compile-waf-policies.md index c7ba92fc3..b96530dac 100644 --- a/content/nic/installation/integrations/app-protect-waf-v5/compile-waf-policies.md +++ b/content/nic/installation/integrations/app-protect-waf-v5/compile-waf-policies.md @@ -56,6 +56,7 @@ In the same directory you created `simple-policy.json`, create a POST request fo ```shell curl -X POST https://{{NMS_FQDN}}/api/platform/v1/security/policies \ -H "Authorization: Bearer " \ + -H "Content-Type: application/json" \ -d @simple-policy.json ``` @@ -122,6 +123,7 @@ Send a POST request to create the bundle through the API: ```shell curl -X POST https://{{NMS_FQDN}}/api/platform/v1/security/policies/bundles \ -H "Authorization: Bearer " \ + -H "Content-Type: application/json" \ -d @security-policy-bundles.json ``` diff --git a/content/nim/nginx-app-protect/manage-waf-security-policies.md b/content/nim/nginx-app-protect/manage-waf-security-policies.md index ed70b069e..4bb8b4e7e 100644 --- a/content/nim/nginx-app-protect/manage-waf-security-policies.md +++ b/content/nim/nginx-app-protect/manage-waf-security-policies.md @@ -86,6 +86,7 @@ For example: ```shell curl -X POST https://{{NIM_FQDN}}/api/platform/v1/security/policies \ -H "Authorization: Bearer " \ + -H "Content-Type: application/json" \ -d @ignore-xss-example.json ``` @@ -146,6 +147,7 @@ To use `POST`, include the policy metadata and content in your request: ```shell curl -X POST https://{{NIM_FQDN}}/api/platform/v1/security/policies?isNewRevision=true \ -H "Authorization: Bearer " \ + -H "Content-Type: application/json" \ -d @update-xss-policy.json ``` @@ -161,7 +163,7 @@ Then include the UID in your PUT request: ```shell curl -X PUT https://{{NIM_FQDN}}/api/platform/v1/security/policies/ \ -H "Authorization: Bearer " \ - --Content-Type application/json \ + -H "Content-Type application/json" \ -d @update-xss-policy.json ``` @@ -241,6 +243,7 @@ Example: ```shell curl -X POST https://{{NIM_FQDN}}/api/platform/v1/security/policies/bundles \ -H "Authorization: Bearer " \ + -H "Content-Type: application/json" \ -d @security-policy-bundles.json ``` @@ -484,6 +487,7 @@ Example: ```shell curl -X POST https://{{NIM_FQDN}}/api/platform/v1/security/logprofiles \ -H "Authorization: Bearer " \ + -H "Content-Type: application/json" \ -d @default-log-example.json ``` @@ -537,6 +541,7 @@ To create a new revision: ```shell curl -X POST https://{{NIM_FQDN}}/api/platform/v1/security/logprofiles?isNewRevision=true \ -H "Authorization: Bearer " \ + -H "Content-Type: application/json" \ -d @update-default-log.json ``` @@ -547,7 +552,7 @@ To overwrite an existing security log profile: ```shell curl -X PUT https://{{NIM_FQDN}}/api/platform/v1/security/logprofiles/ \ -H "Authorization: Bearer " \ - --Content-Type application/json \ + -H "Content-Type application/json" \ -d @update-log-profile.json ``` @@ -556,7 +561,7 @@ To overwrite an existing security log profile: ```shell curl -X PUT https://{{NIM_FQDN}}/api/platform/v1/security/logprofiles/ \ -H "Authorization: Bearer " \ - --Content-Type application/json \ + -H "Content-Type: application/json" \ -d @update-log-profile.json ``` @@ -608,6 +613,7 @@ Example: ```shell curl -X POST https://{{NIM_FQDN}}/api/platform/v1/security/publish \ -H "Authorization: Bearer " \ + -H "Content-Type: application/json" \ -d @publish-request.json ```