Reputation: 21
I want to create signedUrl of an image(saved in firebase-storage) out of its path, as we know, firebase sdk doesn't provide such functionality in firebase-cloud-functions, so i've followed the instructions given at Get Download URL from file uploaded with Cloud Functions for Firebase
I'm able to generate the url for image via cloud-function, but after opening that link in browser, receiving the following error.
<Code>MalformedSecurityHeader</Code>
<Message>Your request has a malformed header.</Message>
<ParameterName>signature</ParameterName>
<Details>Signature was not base64 encoded</Details>
Upvotes: 2
Views: 817
Reputation: 554
Unlikely this is your problem - but I realised I was getting exactly this error because I was 'ctrl+clicking' the link in the VS code terminal - and it was only copying a partial URL into chrome. If I manually copy and paste the full URL into chrome, it was actually valid.
Upvotes: 3