Henkypenky
How can I keep Azure prices down
i once made the mistake of assigning a public ip to a vm running windows server and somehow they found a vulnerability to exploit the DC through netlogon, this fuck up costed me about 2000 dollars because i had alerts set up in place, otherwsie it would have been a lot more
20 replies
Is setting Jwt and fresh tokens as HTTP only cookies good ?
yes, that's correct. I'm assuming you are talking about the http only header and not the http protocol here.
the http only header is not literal, it actually means that its contents cannot be accesed by javascript, so you are safe from various attack vectors. also your server will rely on this header to be present.
4 replies
✅ is there any way to delete items from the database and return the deleted list in one request?
it's important to understand what happens behind the scenes. If you retrieve the range ef core tracks them, so when you proceed to delete them efcore already knows where they are and what state they are in, so the deletion is already optmized. It's not a question of using less commands but a question of understanding why using 2 is fine
14 replies