Skip to content

Commit 4625bbe

Browse files
Corrected logic: CORS protection leaves data unavailable to browsers
1 parent b7dab7e commit 4625bbe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Background.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ This meant that anyone publishing public data has to add
3737
Access-control-allow-Origin: *
3838
```
3939
in any response. This meant a huge amount of work for random open data publishers
40-
all over the web, an effort which in many cases for many reasonable reasons was not done, leaving the data available to browsers, but unavailable to web apps.
40+
all over the web, an effort which in many cases for many reasonable reasons was not done, leaving the data available to web apps, but unavailable to browsers.
4141

4242
The browser actually looks for these headers not on the request itself, but in
4343
on a "Pre-flight" OPTIONS request which is inserted before the main request. So while the developer may see in the browser console only the main request, the number of round trips has in fact increased.

0 commit comments

Comments
 (0)