@dudousxd/nestjs-media-dashboard 0.12.0 → 0.12.2
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/dist/react/use-open-console.d.ts +5 -1
- package/dist/react/use-open-console.d.ts.map +1 -1
- package/dist/react/use-open-console.js +24 -1
- package/dist/react/use-open-console.js.map +1 -1
- package/dist/server/index.cjs +11 -1
- package/dist/server/index.cjs.map +1 -1
- package/dist/server/index.js +11 -1
- package/dist/server/index.js.map +1 -1
- package/package.json +1 -1
package/dist/server/index.js
CHANGED
|
@@ -1697,7 +1697,17 @@ var MediaDashboardModule = class _MediaDashboardModule {
|
|
|
1697
1697
|
...imports ?? [],
|
|
1698
1698
|
MediaConsoleApiModule.register({
|
|
1699
1699
|
actions,
|
|
1700
|
-
|
|
1700
|
+
// `Path=/`, deliberately NOT scoped to `apiBasePath` (nor to `basePath`): the two mounts
|
|
1701
|
+
// are independently configurable and can live at unrelated paths (e.g. a `/media` UI
|
|
1702
|
+
// with a `/api/media/console` API). Scoped to the API base, the browser withheld the
|
|
1703
|
+
// cookie on the full-page navigation to `basePath`, so the freshly minted session could
|
|
1704
|
+
// not open the console it was minted for — the launcher landed on the unauthenticated
|
|
1705
|
+
// page. Scoping to `basePath` instead would just move the failure to the API calls.
|
|
1706
|
+
// The cookie is HttpOnly + signed + short-lived, so the broader scope is a reasonable
|
|
1707
|
+
// trade for being correct in any mount configuration. Matches nestjs-durable-dashboard
|
|
1708
|
+
// and nestjs-agent-dashboard; telescope can scope to its mount because its UI and API
|
|
1709
|
+
// always share one root.
|
|
1710
|
+
cookiePath: "/",
|
|
1701
1711
|
authProvider,
|
|
1702
1712
|
imports,
|
|
1703
1713
|
...options.guards ? {
|