Accessing Protected Custom Asset Sources

I am currently building a plugin that loads media assets from our external media library.

I understand that once the asset has been selected we can trigger an upload from the RenderAssetSourceCtx with

Unfortunately our media library will return 403 forbidden to any requests to the file endpoint unless we pass a sessionKey parameter in the request headers.

Is there some way of modifying the upload headers to allow adding this sessionKey?

Hi @tom.moynihan, we’ve just updated the SDK to allow passing custom headers to!
Please upgrade to datocms-plugin-sdk >= 0.7.13 and let us know how it goes :slight_smile: