Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

Comment by dyzone

1 day ago

DDoSing who? Doesn't CORS help here?

2 comments

dyzone

Reply

ceehex  1 day ago

cors stops the browser from reading the response but the request still gets processed by the server

  • dyzone  6 hours ago

    Browsers use OPTIONS preflight request to do CORS validation. Servers shouldn't do too much work in an OPTIONS request. Should be a simple if statement, no db operations, which is usually where the bottleneck is.

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities