question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Adding a CDN profile rule that modifies a response header fails

See original GitHub issue

Describe 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:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
hytaocommented, Jul 24, 2020

Expected Action name should be “ResponseHeader”.

0reactions
timMSFTcommented, Jul 24, 2020

Expected Action name should be “ResponseHeader”.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found