Skip to content

Commit dff2800

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

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

xml/XMLHttpRequest/README.md

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

4-
```location / {
4+
```
5+
location / {
56
# Simple requests
67
if ($request_method ~* "(GET|POST)") {
78
add_header "Access-Control-Allow-Origin" *;
@@ -10,7 +11,8 @@ In the nginx configuration file, we need to allow CORS
1011
# First attempt to serve request as file, then
1112
# as directory, then fall back to displaying a 404.
1213
try_files $uri $uri/ =404;
13-
}```
14+
}
15+
```
1416

1517
XMLHttpRequest API provides client functionality for transferring data between
1618
a client and a server. It allows an easy way to retrieve data from a URL without

0 commit comments

Comments
 (0)