header

  1. K

    Access-Control-Allow-Origin wildcard subdomains, ports and protocols

    I'm trying to enable CORS for all subdomains, ports and protocol. Typically, I'd like to enable request from origins matching (and limited to): //*.mywebsite.com:*/* Just like the guy below : The same issue with Apache They have found a way to make it work for the Apache, But what about...
  2. M

    Purge url header not working

    Hi, I am using the following to try and purge a URL: header('X-LiteSpeed-Purge: /about/work-for-us'); But it's not working, when I run that header in my code and then go back to the page I still get a cache hit in console. Could it be LS configuration on the server? I can definitely purge...
  3. J

    Conditional X-Frame-Options

    Hi! I am trying to set X-Frame-Options for all pages except all pages of this path: ^/mypath/ Whatever I have tried it won't work. For example, using the below code in my .htaccess I always end up with "deny" - even if I switch my condition check from !~ to =~ I still get "deny" for the pages...
  4. T

    [solved] Invalid Header Magento 2.2.2 [Php7.1] [LSv5.2.8]

    Hello, We're facing an issue in SSH with the output whenever we try to run command lines like: ./recompile-magento2.sh or php bin/magento cache:flush The system does not fully recompile. Though on front end seems to not show issues. This error has happened suddenly, and we have not upgraded or...
  5. T

    PHP header() being ignored after switching to LiteSpeed webhost

    After moving my websites to a webhost (shared) which uses LiteSpeed it seems PHP header is ignored. ... I have tried these variations: $s = "HTTP/1.1 404 Not Found"; $s = "HTTP/1.0 404 Not Found"; $s = "Status: 404 Not Found"; $s = $_SERVER["SERVER_PROTOCOL"] . ' 404 Not Found'; followed by...
Top