Clear Injections
/api/storefront/injectionRemoves the HTML the calling plugin adds to the store's storefront pages, and the origins it had admitted. Idempotent. Requires the store to have granted the plugin storefront:inject.
Response Body
application/json
application/json
application/json
application/json
curl -X DELETE "https://example.com/api/storefront/injection"Get Store Profile GET
The store's public identity: its name, its currency, every change of its currency with the rate it was made at, and its storefront's URL. Scoped to the store the invocation token forwarded in x-novinzo-plugin-invocation was minted for. Needs no permission: nothing of it is private to the seller.
Set Injections PUT
Replaces the HTML the calling plugin adds to the store's storefront pages: `head` right before each page's </head>, `body` right before its </body>, each at most 16384 bytes, placed as given, unescaped. Every storefront page gets it except the checkout, order and subscription renewal pay pages and the pages plugins serve. Each origin list, at most 16 https origins, is added to one directive of those pages' Content Security Policy: `scriptOrigins` to script-src, `connectOrigins` (which also takes wss origins) to connect-src, and the optional `styleOrigins`, `fontOrigins`, `imgOrigins` and `frameOrigins` to style-src, font-src, img-src and frame-src. Pages show the change once core has announced it, which this call does. Idempotent. Uninstalling the plugin, or withdrawing storefront:inject, removes the injection from the pages. Requires the store to have granted the plugin storefront:inject.
