diff options
author | Florian Merz <me@fiji-flo.de> | 2021-02-05 18:52:37 +0100 |
---|---|---|
committer | Florian Merz <me@fiji-flo.de> | 2021-02-05 18:52:37 +0100 |
commit | 08a04d85393a0bb5721a17328df62c4915c487c5 (patch) | |
tree | ea226febdf775a158b9b110459697a090fdfbe8e /files/zh-cn/web/http/cors | |
parent | 7425818d30fbc66df26cedebc612e8e83a332c56 (diff) | |
download | translated-content-08a04d85393a0bb5721a17328df62c4915c487c5.tar.gz translated-content-08a04d85393a0bb5721a17328df62c4915c487c5.tar.bz2 translated-content-08a04d85393a0bb5721a17328df62c4915c487c5.zip |
fix some macros for zh-cn
Diffstat (limited to 'files/zh-cn/web/http/cors')
-rw-r--r-- | files/zh-cn/web/http/cors/errors/cors错误允许凭证/index.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/files/zh-cn/web/http/cors/errors/cors错误允许凭证/index.html b/files/zh-cn/web/http/cors/errors/cors错误允许凭证/index.html index 9ba1f6b468..8a8f8d0074 100644 --- a/files/zh-cn/web/http/cors/errors/cors错误允许凭证/index.html +++ b/files/zh-cn/web/http/cors/errors/cors错误允许凭证/index.html @@ -16,9 +16,9 @@ translation_of: Web/HTTP/CORS/Errors/CORSMIssingAllowCredentials <p>想要在客户端解决此问题,请修改代码以不请求使用凭据:</p> <ul> - <li>如果要使用{{domxref(“ XMLHttpRequest”)}}发出请求,请确保没有将{{domxref(“ XMLHttpRequest.withCredentials”,“ withCredentials”)}}}设置为true。</li> - <li>如果使用 <a href="https://wiki.developer.mozilla.org/en-US/docs/Web/API/Server-sent_events">Server-sent events</a>,请确保{{domxref(“ EventSource.withCredentials”)}}为false(default)。</li> - <li>如果使用 <a href="https://wiki.developer.mozilla.org/en-US/docs/Web/API/Fetch_API">Fetch API</a>,请确保{{domxref(“ Request.credentials”)}}为“omit”。</li> + <li>如果要使用{{domxref("XMLHttpRequest")}}发出请求,请确保没有将{{domxref("XMLHttpRequest.withCredentials”,“ withCredentials")}}}设置为true。</li> + <li>如果使用 <a href="https://wiki.developer.mozilla.org/en-US/docs/Web/API/Server-sent_events">Server-sent events</a>,请确保{{domxref("EventSource.withCredentials")}}为false(default)。</li> + <li>如果使用 <a href="https://wiki.developer.mozilla.org/en-US/docs/Web/API/Fetch_API">Fetch API</a>,请确保{{domxref("Request.credentials")}}为“omit”。</li> </ul> <p>想要通过更改服务器的配置来消除此错误,请调整服务器的配置以将Access-Control-Allow-Credentials标头的值设置为true。</p> |