One thing to note, CORS only makes sense if your API uses cookies for authentication, most APIs use custom headers, the Authentication header, or even url tokens, they don’t rely on cookies, so most of the time, APIs don’t care about CORS. People keep blindly repeating that accepting all origins “*”, is bad for security, but the situations where this is relevant are really uncommon.
cout970
- 0 Posts
- 3 Comments
Joined 3 years ago
Cake day: June 30th, 2023
You are not logged in. If you use a Fediverse account that is able to follow users, you can follow this user.
cout970@programming.devto
Programming@programming.dev•Which protocol or open standard do you like or wish was more popular?
1·2 years agoThats an issue with the time library, not with timestamps. Actually timestamps are always in UTC, you need to do the conversion to your local time when displaying the value. There should be no possible off-by-one errors, unless you are doing something really wrong.
My hypothesis is that those scrappers run on botnets hosted on infected servers, so they want to get the info as fast as possible, since you don’t know how long it will last before they are detected and removed.
Another option is that so many servers are scrapping the same web that one server may send only a request every a few seconds, but the whole fleet could be sending thousands of requests per second, some big websites can handle the load, but most small to medium size sites get overwhelmed.