iya-sts
    Preparing search index...

    Variable crossSiteBrowserRequest

    crossSiteBrowserRequest: (req: any) => boolean = crossSiteBrowserRequest

    Type Declaration

      • (req: any): boolean
      • Tells whether a state-changing request carrying a browser's cookies came from a page that is not this service's (#1442, ASVS 5.0.0 3.5.1).

        Origin decides when it names one. null is not a verdict: this service sends Referrer-Policy: no-referrer, under which a browser serializes the Origin of its own same-origin form POST as null, so Sec-Fetch-Site decides then. A request with neither did not come from a browser, and a cookie a program presents on purpose is not a forgery.

        Parameters

        • req: any

          the request

        Returns boolean

        true when the request must be refused