@tryghost/app-sdk 0.1.0-alpha.4 → 0.1.0-alpha.5

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
@@ -280,6 +280,15 @@ content and third-party pages or widgets on another origin (a separate subdomain
280
280
  counts). An open redirect is a risk too: a link through it puts another site's
281
281
  page in the frame, inside Admin.
282
282
 
283
+ Serve the app from a host of its own, too. Ghost refuses an app on the site's
284
+ or Admin's host, whatever the port, because browsers send a host's cookies to
285
+ every port on it, Ghost's session cookie included. On your own machine, serve
286
+ the app from a name of its own under `.localhost`, such as `my-app.localhost`.
287
+ Browsers treat it as another host and send it to the machine itself, Vite
288
+ accepts it with no setup, and Ghost in development reaches it even where the
289
+ system's resolver doesn't know it. Open Admin on the name Ghost is configured
290
+ with, as Admin refuses an app on the host it's opened from too.
291
+
283
292
  ## Develop
284
293
 
285
294
  This is a workspace package in the Ghost monorepo. From the package directory:
package/build/index.js CHANGED
@@ -642,7 +642,7 @@ var Channel = class {
642
642
  * `__SDK_VERSION__` with the version in package.json, because the source stays within `src/`
643
643
  * and doesn't read package.json.
644
644
  */
645
- var SDK_VERSION = "0.1.0-alpha.4";
645
+ var SDK_VERSION = "0.1.0-alpha.5";
646
646
  //#endregion
647
647
  //#region src/connect.ts
648
648
  /**
package/dist/app-sdk.js CHANGED
@@ -1218,7 +1218,7 @@ var Channel = class {
1218
1218
  * `__SDK_VERSION__` with the version in package.json, because the source stays within `src/`
1219
1219
  * and doesn't read package.json.
1220
1220
  */
1221
- var SDK_VERSION = "0.1.0-alpha.4";
1221
+ var SDK_VERSION = "0.1.0-alpha.5";
1222
1222
  //#endregion
1223
1223
  //#region src/connect.ts
1224
1224
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryghost/app-sdk",
3
- "version": "0.1.0-alpha.4",
3
+ "version": "0.1.0-alpha.5",
4
4
  "description": "The SDK apps use to talk to Ghost from inside Admin",
5
5
  "license": "MIT",
6
6
  "author": "Ghost Foundation",