You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This discussion was converted from issue #41659 on March 25, 2022 07:34.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Description:
environment is Ubuntu 20.04
nginx setting
laravel’s app_url still contains
/api
,so whole url will becomemydomain.com/api/api
I had tried to find from /vendor/laravel/framework/src/Illuminate/Routing/UrlGenerator.php (https://github.com/illuminate/routing/blob/8.x/UrlGenerator.php)](https://github.com/illuminate/routing/blob/8.x/UrlGenerator.php) , and then I found
$request->server->get('QUERY_STRING'))
in function :hasCorrectSignature()
,QUERY_STRING was gotten wrongly
correct :
expires=1648139593&signature=5d139178c72bb4a3ea11e7986ed9d1fe6671e7bc23b2b5b59ac6bbc55e8eaa17
wrong:
/api/url?expires=1648139593&signature=5d139178c72bb4a3ea11e7986ed9d1fe6671e7bc23b2b5b59ac6bbc55e8eaa17
I guess it is why SignedUrl be Invalid Signature
Why Laravel SignedUrl when the URL setting contains “/api”,will return 403 Invalid Signature?
Beta Was this translation helpful? Give feedback.
All reactions