github ing-bank/lion @lion/ajax@2.0.0

latest releases: @lion/ui@0.7.8, @lion/ui@0.7.7, @lion/ui@0.7.6...
6 months ago

Major Changes

  • 04d0868: BREAKING: Only add XSRF token on mutable requests and on same origin or whitelisted origins

    Previously the XSRF token was added to any call to any origin.
    This is changed in two ways.
    (1) The token is now only attached to requests that are POST/PUT/PATCH/DELETE.
    (2) It will validate if the request origin is the same as current origin or when the origin is in the xsrfTrustedOrigins.

    This is a fix for a vulnerability: we inadvertently revealed the confidential XSRF-TOKEN stored in cookies by including it in the HTTP header X-XSRF-TOKEN for every request made to any host. This allowed attackers to view sensitive information.

Don't miss a new lion release

NewReleases is sending notifications on new releases.