Snippet preview with an access protected page
Our dev environment is hosted in cloudflare behind an access login wall. That seems to be a problem when testing out snippets, since they are not allowed past the access page and instead get redirected to the login page, which doesn't get shown because it's inside an iframe. Is there a way to allow the snippets thorough the access wall?
2 Replies
Snippets are executed after Access, so you'll have to bypass Access for requests towards iframe that is using Snippets (using headers, different URL, cookie or something else): https://developers.cloudflare.com/ruleset-engine/reference/phases-list/
Cloudflare Docs
Phases list · Cloudflare Ruleset Engine docs
The following tables list the phases of Cloudflare products powered by the Ruleset Engine, in the order those phases are executed. Some products such as the Cloudflare Web Application Firewall have more than one associated phase.
The problem is in the snippets editor preview iframe. How can I control what headers the cloudflare dashboard is sending?