Since all client side code is untrusted, how can this code introduce ADDITIONAL sevurity concerns?
It can't.
Hello,
Could it be a security problem with this code ?
<x-ui.submit-button x-data="{ submitted: false }" x-on:click="submitted = true; $el.closest('form').submit()" x-bind:disabled="submitted">
<div x-show="submitted" class="animate-spin">
<x-icons.spinner></x-icons.spinner>
</div>
<div x-show="!submitted">
Enregistrer
</div>
</x-ui.submit-button>
Is there any security problem with this code ? Is there any more elegant way to do that ?
Thanks for your help.
V
What kind of attack are you talking about?
Users can do anything with their own front end, so they can of course submit the form anywhere. That's why you validate and authorize everything server-side.
On the front end, what you need to worry about is code injection that could affect other users (XSS).
Please or to participate in this conversation.