Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

139
Views
Prevent fetch credential (httponly cookies) used by third party plugins/extensions

Is there any best practice to implement session login that prevents third-party plugins/extensions send requests to the server?

I see cookies with httpOnly flag can prevent javascript interaction, along with sameSite flag can mitigate cross-site attacks, but what about the browser plugins/extensions?

Some plugins/extensions can call fetch inside their code, and httpOnly cookies are auto sent by fetch if the credentials are set to include, so any plugins/extensions that create a fetch with credential included, can request to the server to manipulate user data?

# some_bad_plugin.js

fetch(YOUR_SERVER_URL, {
  method: 'GET',
  credentials: 'include',
})

I think this problem may be mitigated by additional login information stored in cookie or localStorage, and the request to the server need these fields. But that seems back to the beginning with no httpOnly cookie...

Is there something I missed?

about 4 years ago · Santiago Gelvez
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!