Skip to content

Commit 4a598cb

Browse files
authored
Update README.md
1 parent e47dd8a commit 4a598cb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

xml/XMLHttpRequest/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
22
In the nginx configuration file, we need to allow CORS
33

4-
location / {
4+
```location / {
55
# Simple requests
66
if ($request_method ~* "(GET|POST)") {
77
add_header "Access-Control-Allow-Origin" *;
@@ -10,7 +10,7 @@ location / {
1010
# First attempt to serve request as file, then
1111
# as directory, then fall back to displaying a 404.
1212
try_files $uri $uri/ =404;
13-
}
13+
}```
1414
1515
XMLHttpRequest API provides client functionality for transferring data between
1616
a client and a server. It allows an easy way to retrieve data from a URL without

0 commit comments

Comments
 (0)