I noticed this question, which discusses various ways to alter HTTP Response Headers.
Where would I be able to execute:
$response->headers->remove('X-Frame-Options');
I attempted to place this within my THEMENAME.theme file, but perhaps I am not doing it right because $response
is not defined where I am using it.
Where does $response
come from?
Where can I execute $response->headers->remove('X-Frame-Options');
?
Note: I understand the risks of removing the HTTP Header. This is for development/testing purposes only.
/modules
, and Drupal is not picking up my Event subscription.