Version Packages
This commit is contained in:
parent
5a2e01c3c7
commit
fce6328787
3 changed files with 14 additions and 13 deletions
|
|
@ -1,12 +0,0 @@
|
||||||
---
|
|
||||||
'@lion/ajax': major
|
|
||||||
---
|
|
||||||
|
|
||||||
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.
|
|
||||||
|
|
@ -1,5 +1,18 @@
|
||||||
# Change Log
|
# Change Log
|
||||||
|
|
||||||
|
## 2.0.0
|
||||||
|
|
||||||
|
### Major Changes
|
||||||
|
|
||||||
|
- 04d08683: 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.
|
||||||
|
|
||||||
## 1.3.0
|
## 1.3.0
|
||||||
|
|
||||||
### Minor Changes
|
### Minor Changes
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@lion/ajax",
|
"name": "@lion/ajax",
|
||||||
"version": "1.3.0",
|
"version": "2.0.0",
|
||||||
"description": "Thin wrapper around fetch with support for interceptors.",
|
"description": "Thin wrapper around fetch with support for interceptors.",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"author": "ing-bank",
|
"author": "ing-bank",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue