Questions tagged [http-header]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
1k views

how to set no-cache HTTP headers in controller in magento 2

I have read in Magento 2 Dev Docs for Public content we can set no-cache HTTP headers for Controllers that don’t use layouts(last line in page). Controllers that don’t use layouts should set no-...
3
votes
1answer
5k views

Console showing Error parsing header X-XSS-Protection: 1; mode=block, 1; mode=block:

I don't know what it's means and how to remove this error. it's showing in my chrome console . but not in firefox console.. (index):1 Error parsing header X-XSS-Protection: 1; mode=block, 1; mode=...
3
votes
2answers
155 views

set x-frame-options in custom controller magento2

I have a custom controller with below code. namespace Vendor\Module\Controller\Service; class Login extends \Magento\Framework\App\Action\Action{ protected $_storeManager; protected $_customerFactory;...
1
vote
1answer
340 views

X-XSS-Protection header gets set twice - override XssProtection.php

I use magento 2 (version 2.3) and cloudFlare. There is an error with http headers: X-XSS-Protection header gets set twice because magento add this and then ClouFlare add again. See this post It's ...