Skip to content

exp_request_shield 0.0.1.9

Choose a tag to compare

@se7enxweb se7enxweb released this 28 Nov 18:55
· 3 commits to main since this release
  • Added: EXP-SETUP-POST, shipped commented out. With [SiteAccessSettings] CheckValidity=true every address is the
    setup wizard, and from Exponential 6.0.15 on its pages (the "already installed" page, the confirm page and every
    step) post back to the site root instead of /setup/init, which EXP-MODULES rightly refuses in the frontend.
    EXP-POST answers a POST at / with 405, so take the # away from EXP-SETUP-POST (allow POST /) only while
    the wizard runs, and put it back afterwards: the shield cannot see CheckValidity. /setup/... stays 404.
  • Fixed: The layout editor works in every admin siteaccess, not only in /admin (exponential#378). In /adminui
    (and /editor, /admin2 to /admin4l, /admintest_*) discarding a draft (DELETE .../layouts/<id>/draft) was
    answered 405, because the library's EXP-ADMIN-SPA allows PUT, PATCH and DELETE at /admin/explayouts_ui_api/**
    only; SITE-ADMIN-SPA allows them at the editor's API of the other admin siteaccesses too, and nowhere else.
  • Fixed: The admin's background calls (the layout editor's API and its form routes, ezjscore calls) no longer get the
    browser check. The pass is bound to the visitor's address, so a browser that sent some calls over IPv4 and others
    over IPv6 (to a host with both) had every call over the other family refused with 429, and the editor showed
    "Something went wrong!" when it opened a block's form, loaded a layout or created a draft. A fetch cannot show the
    check anyway, and these calls need the editor's session and CSRF token. SITE-ADMIN-API-NOCHECK exempts them in
    every admin siteaccess; the editor's page and every other admin page keep the check, and the calls keep their budget
    (EXP-ADMIN-API, 1800 a minute, past it 429). EXP-PACE and EXP-ADMIN-API are replaced so that these calls count
    apart from page views in every admin siteaccess, not only in /admin. Sites with a rule file of their own
    (settings/request-shield/request-shield.rules) should take the new SITE-ADMIN-SPA, SITE-ADMIN-API-NOCHECK and
    the two replace lines.