Skip to content

exp_request_shield 0.0.1.8

Latest

Choose a tag to compare

@se7enxweb se7enxweb released this 24 Nov 08:24
· 3 commits to main since this release
  • Fixed: Packed stylesheets and scripts load on cluster sites. On a cluster site the cluster gateway
    (index_cluster.php) serves the public part of the cache, the packed stylesheets and scripts and the text images,
    so those requests reach PHP. EXP-INTERNAL refused them as internal files, and a cluster site lost its styles
    whenever it rebuilt its packed files. EXP-PUBLIC-CACHE opens var/<site>/cache/public/ and
    var/<site>/cache/texttoimage/ again; the rest of the cache stays refused. Sites that copied EXP-INTERNAL into a
    rule file of their own should take the new EXP-PUBLIC-CACHE line.
  • Fixed: A page the browser loads itself always gets the HTML check page, never the JSON task. A navigation
    (Sec-Fetch-Mode: navigate, or Sec-Fetch-Dest: document) was answered as an API when its path matched an
    api-path rule or its request came through a service worker, so the browser showed the raw JSON challenge instead
    of "One moment, please". Background calls (fetch(), XMLHttpRequest) still get JSON.