Adding a CDN profile rule that modifies a response header fails
See original GitHub issueDescribe the bug
Trying to add a CDN profile rule that modifies a response header fails with validation error: Parameter 'DeliveryRuleAction.name' can not be None
To Reproduce Run the command below. You will need to create a resource group, cdn profile and cdn endpoint beforehand.
az cdn endpoint rule add --name cdn-endpoint-name --profile-name cdn-profile-name --resource-group resource-group-name --order 1 --rule-name cors1 --match-variable RequestHeader --selector Origin --match-values https://mydomain.com --operator Equal --transform Lowercase --action-name ModifyResponseHeader --header-action Overwrite --header-name "Access-Control-Allow-Origin" --header-value https://mydomain.com
Expected behavior Should create a new rule
Environment summary MSI on Windows (running the command from PowerShell)
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
How can I add additional rules to my CDN? - Microsoft Q&A
I want to use the Rules Engine to add HTTP response headers. I've opened the Rules Engine and added 3 actions to the...
Read more >Using Azure CDN to Specify Custom HTTP Headers ... - Medium
Click on Add Action in the Global Rule and select Modify Response Header. Enter values for the Modify response header fields. The examples...
Read more >Azure CDN "standard" endpoint rules set response header ...
I'm trying to set up a Single-Page App, stored in Azure Storage (blob) and fronted by Azure CDN. The problem is with setting...
Read more >Cache Settings - Imperva Documentation Portal
According to a response header value in the origin resources. For details, see the Tag the Response ... In the Custom Cache Rules...
Read more >Azure CDN rules engine to add default document EXCEPT for ...
First off, your CDN Profile needs to be the Verizon Premium CDN SKU in Azure. It's the only SKU that supports rewrite rules....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Expected Action name should be “ResponseHeader”.
Expected Action name should be “ResponseHeader”.