2

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>
KENdi
  • 7,576
  • 2
  • 16
  • 31
  • 2
    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. – dsg38 Jun 28 '19 at 20:50
  • 1
    @dsg38 haha heck yeah man this just fixed me up :D – Joseph Mckenzie Jan 01 '20 at 22:37
  • 1
    @dsg38 This should be an answer. Fixed it for me too! – Andreas Tzionis Mar 06 '22 at 14:35
  • @AndreasTzionis - Just added as an answer. Up vote would be appreciated :) – dsg38 Mar 07 '22 at 15:16
  • @JosephMckenzie - Just added as an answer. Up vote would be appreciated :) – dsg38 Mar 07 '22 at 15:17

1 Answers1

3

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.

dsg38
  • 544
  • 5
  • 10