0

For all uses of MediaManager I have code like:

  string mediaItem = MediaManager.GetMediaUrl(sourceItem, mediaUrlOptions);
   itemUrl = HashingUtils.ProtectAssetUrl(mediaItem);

I do have setting set:

 <setting name="Media.RequestProtection.SharedSecret">

And yet when in preview mode I see the error: ERROR MediaRequestProtection: An invalid/missing hash value was encountered. The expected hash value:

Any pointers? Thank you

3