2 ms·
I feel like this is overkill when you have something like OPTIONS which is very minimalist in its response. Unless I'm missing some obvious drawback with callin
by giancarlostoro 4y ago
I feel like this is overkill when you have something like OPTIONS which is very minimalist in its response. Unless I'm missing some obvious drawback with calling OPTIONS?
- javier2 4y agoWell, you double the latency for every. single. request.
- tomjakubowski 4y agoCORS does not double latency for every single request. It adds the additional overhead of a separate OPTIONS request for every single request. Unless the responses are as trivial to compute/serve as OPTIONS responses are, that will be way less than a doubling in latency.
- javier2 4y agoWhat I mean by latency is the transport latency, even assuming 0ms OPTIONS compute time, you still need twice the round trip time.