We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e47dd8a commit 4a598cbCopy full SHA for 4a598cb
1 file changed
xml/XMLHttpRequest/README.md
@@ -1,7 +1,7 @@
1
2
In the nginx configuration file, we need to allow CORS
3
4
-location / {
+```location / {
5
# Simple requests
6
if ($request_method ~* "(GET|POST)") {
7
add_header "Access-Control-Allow-Origin" *;
@@ -10,7 +10,7 @@ location / {
10
# First attempt to serve request as file, then
11
# as directory, then fall back to displaying a 404.
12
try_files $uri $uri/ =404;
13
-}
+}```
14
15
XMLHttpRequest API provides client functionality for transferring data between
16
a client and a server. It allows an easy way to retrieve data from a URL without
0 commit comments