@jeffkaufman  have you tried to add `add_header "X-Inline-Javascript" $inline_javascript;` here in the if block ?