@ethersphere/bee-js 13.2.0-upcoming.g459c05b → 13.2.0-upcoming.g824bc53

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -59,6 +59,18 @@ Loading this module through a script tag will make the `BeeJs` object available
59
59
  <script src="https://unpkg.com/@ethersphere/bee-js/dist/index.browser.min.js"></script>
60
60
  ```
61
61
 
62
+ ### Browser apps and CORS
63
+
64
+ From Bee 2.8.3, a node rejects `POST`, `PUT`, `PATCH` and `DELETE` requests from a browser page on another origin with
65
+ `403 Forbidden`, unless that origin is listed in the node's `cors-allowed-origins` option. Uploads, stamp purchases and
66
+ other write calls from a web app therefore need the app's origin in that list:
67
+
68
+ ```sh
69
+ bee start --cors-allowed-origins="https://my-app.example"
70
+ ```
71
+
72
+ Node.js scripts are not affected, because they send no `Origin` header.
73
+
62
74
  ## Overview
63
75
 
64
76
  ### Type interfaces
@@ -4,8 +4,8 @@
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.SUPPORTED_API_VERSION = exports.SUPPORTED_BEE_VERSION = exports.SUPPORTED_BEE_VERSION_EXACT = void 0;
6
6
  /** Exact supported Bee version, including the commit hash suffix. */
7
- exports.SUPPORTED_BEE_VERSION_EXACT = '2.8.1-7cf53193';
7
+ exports.SUPPORTED_BEE_VERSION_EXACT = '2.8.3';
8
8
  /** Supported Bee version without the commit hash suffix. */
9
9
  exports.SUPPORTED_BEE_VERSION = exports.SUPPORTED_BEE_VERSION_EXACT.split('-')[0];
10
10
  /** Supported Bee API version. */
11
- exports.SUPPORTED_API_VERSION = '8.1.0';
11
+ exports.SUPPORTED_API_VERSION = '8.2.0';