@nuskin/ns-product-lib 2.5.1 → 2.5.2

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [2.5.2](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.5.1...v2.5.2) (2023-03-09)
2
+
3
+
4
+ ### Fix
5
+
6
+ * CORS error in MySite when IsEquinoxEnabled = true ([3f66250](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/3f66250de211a63906ca0aa50f60257f63e3bc56))
7
+
1
8
  ## [2.5.1](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.5.0...v2.5.1) (2023-03-07)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuskin/ns-product-lib",
3
- "version": "2.5.1",
3
+ "version": "2.5.2",
4
4
  "description": "This project contains shared Product models and code between the backend and frontend.",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -28,7 +28,6 @@ const ProductData = {
28
28
 
29
29
  getProductFromEquinox: async function (skus, locale, config) {
30
30
  const filter = `{"filters": [{"field": "index_key_skuId","operation": "IN", "value": "${skus.toString()}"}]}`;
31
- axios.defaults.withCredentials = true;
32
31
 
33
32
  const url = `${config.API_Base_URLs}/orchestrationservices/storefront/catalogs/search/`;
34
33
  const href = `${url}?filter=${encodeURI(filter)}`;
@@ -40,7 +39,8 @@ const ProductData = {
40
39
  storeId: config.store_id
41
40
  },
42
41
  headers: this.getEquinoxRequestHeaders(),
43
- responseType: 'json'
42
+ responseType: 'json',
43
+ withCredentials: true
44
44
  });
45
45
 
46
46
  if (response.data.product) {