AFAIK the signature that is created is for the full URL so if you add any query parameters they will be part of the signature and if you change them will get an invalid signature exception.
Nov 19, 2018
1
Level 2
Signed urls with dynamic query params
We have a signed url which for downloading a report as pdf.
Know it would be great, if we can provide a filter as query parameters like ?state=open or ?limit=200 to this signed url (without generating this url for each variation of the filter).
Can we configure this signed route to just verify the url without query params?
Or is there a better way to restrict file download for some user groups?
Here is the code of the url generation:
public function getReportUrl()
{
return ['url' => URL::temporarySignedRoute('ParticipationReport', now()->addMinutes(30))];
}
Please or to participate in this conversation.