News for hackers. Stuff that matters.
Re:Cache your CORS by harry1989 on Tuesday September 20, 2022 @01:20AM (#32907949)
Excellent suggestion.

These days chrome hides the preflight requests by default and you miss to notice the latency added for each of those CORS calls.

Also we don't deal with CORS unless it's an external plugin that we include in our site. Earlier we had subdomains like api..com, static..com to parallelize network requests which required CORS to be setup. With H2 we got rid of all of them and load everything from a single domain. This reduced the CORS surface area.

Re:Cache your CORS by corentin88 on Tuesday September 20, 2022 @03:32AM (#32908778)
What’s H2?
Re:Cache your CORS by end_of_line on Tuesday September 20, 2022 @04:24AM (#32909075)
There is a in memory database H2. Anyways, I have never used h2 as short form of http/2
Re:Cache your CORS by jiggawatts on Tuesday September 20, 2022 @03:47AM (#32908867)
HTTP/2
Re:Cache your CORS by harry1989 on Tuesday September 20, 2022 @03:18PM (#32916511)
Yes it is http2. H2 is technically http2 over SSL.