Possible token leak in Dashboard?
I have a question about v3. I dicided to change the account widget in the dashboard to this. When I click on the Youtube button, even though it should technically do nothing, I guess the user token appears in the url bar? Not sure if this is a bug or not
11 Replies
The default
method
of a form
is get
.Don’t use the user widget. It submits a form to log out the user. You should create a custom widget
So the token provided by
@csrf
puts it in the url if you press the buttonIf it’s just a link to YouTube. You don’t need a form at all.
also, its not even a leak lol
the token is accessible in the html
Thats why I said "possible". I wasnt sure if it was supposed to be there
but thank you
its suppost to be in the post request
is threre documentation on
<x-filament::button
? Because it isnt redirecting me to youtube.
change tag = a
html buttons don't support href
it's also not a type=submit unless it's in a form
there is an example here
https://discordapp.com/channels/883083792112300104/883083792653381695/1133681019204145183
This works. Thank you
Didnt see that one. Thanks