4 ms·
Or you can have the browser cache the CORS header for up to 2 hours (cross-browser), for the same performance effect - but it will also work for third party web
by kzemek 5y ago
Or you can have the browser cache the CORS header for up to 2 hours (cross-browser), for the same performance effect - but it will also work for third party website consumers of your API that you can't just put on your domain.
- miyuru 5y agoThe author did not actually solve the problem at hand. Try the API playground[1] on the authors site. Its takes more than 1 secs for me to get a preflight response back. The preflight request hits fastly and aws apigateway and maybe the application well. There are lot of options to solve the problem at fastly and apigateway as I mention in another comment[2]. I really hope author reads the comments here. [1] https://www.meetup.com/api/playground/ https://www.meetup.com/api/playground/ [2] https://news.ycombinator.com/item?id=29778973 https://news.ycombinator.com/item?id=29778973