Re:A proposal to restrict sites from accessing a users' loca...
by chuckadams on Thursday June 05, 2025 @09:33AM
(#44191566)
Thankfully no-cors also restricts most headers, including setting content-type to anything but the built-in form types. So while CSRF doesn't even need a click because of no-cors, it's still not possible to do csrf with a json-only api. Just be sure the server is actually set up to restrict the content type -- most frameworks will "helpfully" accept and convert form-data by default.
[ Parent
| on HN ]
There are no comments on this comment yet.