@dudousxd/nestjs-media-dashboard 0.12.0 → 0.12.1
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/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.cjs
CHANGED
|
@@ -1730,7 +1730,17 @@ var MediaDashboardModule = class _MediaDashboardModule {
|
|
|
1730
1730
|
...imports ?? [],
|
|
1731
1731
|
MediaConsoleApiModule.register({
|
|
1732
1732
|
actions,
|
|
1733
|
-
|
|
1733
|
+
// `Path=/`, deliberately NOT scoped to `apiBasePath` (nor to `basePath`): the two mounts
|
|
1734
|
+
// are independently configurable and can live at unrelated paths (e.g. a `/media` UI
|
|
1735
|
+
// with a `/api/media/console` API). Scoped to the API base, the browser withheld the
|
|
1736
|
+
// cookie on the full-page navigation to `basePath`, so the freshly minted session could
|
|
1737
|
+
// not open the console it was minted for — the launcher landed on the unauthenticated
|
|
1738
|
+
// page. Scoping to `basePath` instead would just move the failure to the API calls.
|
|
1739
|
+
// The cookie is HttpOnly + signed + short-lived, so the broader scope is a reasonable
|
|
1740
|
+
// trade for being correct in any mount configuration. Matches nestjs-durable-dashboard
|
|
1741
|
+
// and nestjs-agent-dashboard; telescope can scope to its mount because its UI and API
|
|
1742
|
+
// always share one root.
|
|
1743
|
+
cookiePath: "/",
|
|
1734
1744
|
authProvider,
|
|
1735
1745
|
imports,
|
|
1736
1746
|
...options.guards ? {
|