silverswan9
silverswan9

Reputation: 1

How to send allowedorigins and requiresignedurls in Upload-Metadata header?

I’m trying to implement TUS and according to this doc I can send requireSignedUrls and allowedOrigin options in Upload-Metadata header. https://developers.cloudflare.com/stream/uploading-videos/upload-video-file#supported-options-in-upload-metadata

I’ve tried sending like Upload-Metadata: requiresignedurls, allowedOrigins=“abcd.com,efgh.com”

requiresignedurls works fine but not allowedorigins

Upvotes: 0

Views: 204

Answers (1)

Catalin
Catalin

Reputation: 159

Values need to be encoded in base64, so correct header would be:

Upload-Metadata: requiresignedurls,allowedOrigins=YWJjZC5jb20sZWZnaC5jb20=

Upvotes: 1

Related Questions