Skip to content

Instantly share code, notes, and snippets.

@psapir
Created November 12, 2016 10:53
Show Gist options
  • Save psapir/fec1bfc1c3f21b607c00477f05e45202 to your computer and use it in GitHub Desktop.
Save psapir/fec1bfc1c3f21b607c00477f05e45202 to your computer and use it in GitHub Desktop.
Fiddler Custom Rules example
static function OnBeforeResponse(oSession: Session) {
if (oSession.hostname.Contains("exacttarget.com"))
{
oSession.oResponse.headers.Add("Access-Control-Allow-Origin", "*");
}
if (m_Hide304s && oSession.responseCode == 304) {
oSession["ui-hide"] = "true";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment