Skip to content
This repository was archived by the owner on Jan 23, 2026. It is now read-only.

Commit 48d0037

Browse files
committed
fix: use authenticated endpoint prefixes
1 parent 9d0297b commit 48d0037

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/packages/StorageFileApi.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ export default class StorageFileApi {
504504
}
505505
> {
506506
const wantsTransformation = typeof options?.transform !== 'undefined'
507-
const renderPath = wantsTransformation ? 'render/image/authenticated' : 'object'
507+
const renderPath = wantsTransformation ? 'render/image/authenticated' : 'object/authenticated'
508508
const transformationQuery = this.transformOptsToQueryString(options?.transform || {})
509509
const queryString = transformationQuery ? `?${transformationQuery}` : ''
510510

@@ -544,7 +544,7 @@ export default class StorageFileApi {
544544
const _path = this._getFinalPath(path)
545545

546546
try {
547-
const data = await get(this.fetch, `${this.url}/object/info/${_path}`, {
547+
const data = await get(this.fetch, `${this.url}/object/info/authenticated/${_path}`, {
548548
headers: this.headers,
549549
})
550550

@@ -577,7 +577,7 @@ export default class StorageFileApi {
577577
const _path = this._getFinalPath(path)
578578

579579
try {
580-
await head(this.fetch, `${this.url}/object/${_path}`, {
580+
await head(this.fetch, `${this.url}/object/authenticated/${_path}`, {
581581
headers: this.headers,
582582
})
583583

0 commit comments

Comments
 (0)