← Back to Storage domain

Storage.overrideQuotaForOrigin

Override quota for the specified origin

Domain: Storage experimental

Parameters

NameTypeDescription
originstringSecurity origin.
quotaSize (optional)numberThe quota size (in bytes) to override the original quota with. If this is called multiple times, the overridden quota will be equal to the quotaSize provided in the final call. If this is called without specifying a quotaSize, the quota will be reset to the default value for the specified origin. If this is called multiple times with different origins, the override will be maintained for each origin until it is disabled (called without a quotaSize).

Example Request

{
  "id": 1,
  "method": "Storage.overrideQuotaForOrigin",
  "params": {
    "origin": "origin-value"
  }
}

Example Response

{
  "id": 1,
  "result": {}
}

Usage in Node.js

const result = await send('Storage.overrideQuotaForOrigin', {"origin": "origin-value"});
console.log(result);