fix(plugin-cloud-storage): resave media
This commit is contained in:
@@ -17,9 +17,7 @@ export const getExternalFile = async ({ data, req, uploadConfig }: Args): Promis
|
||||
|
||||
const headers = uploadConfig.externalFileHeaderFilter
|
||||
? uploadConfig.externalFileHeaderFilter(Object.fromEntries(new Headers(req.headers)))
|
||||
: {
|
||||
cookie: req.headers['cookie'],
|
||||
}
|
||||
: { cookie: req.headers.get('cookie') }
|
||||
|
||||
const res = await fetch(fileURL, {
|
||||
credentials: 'include',
|
||||
|
||||
Reference in New Issue
Block a user