Skip to content

Commit f008035

Browse files
YuriMascarenhasLourencogithub-actions[bot]pepelsbey
authored
"how to fix" cors did not succeed error added (mdn#42770)
* "how to fix" cors did not succeed error added * Update files/en-us/web/http/guides/cors/errors/corsdidnotsucceed/index.md Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Format for consistency * Update index.md * Update files/en-us/web/http/guides/cors/errors/corsdidnotsucceed/index.md Co-authored-by: Vadim Makeev <hi@pepelsbey.dev> --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Vadim Makeev <hi@pepelsbey.dev>
1 parent d0be159 commit f008035

File tree

1 file changed

+11
-0
lines changed
  • files/en-us/web/http/guides/cors/errors/corsdidnotsucceed

1 file changed

+11
-0
lines changed

files/en-us/web/http/guides/cors/errors/corsdidnotsucceed/index.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,17 @@ The {{Glossary("HTTP")}} request which makes use of CORS failed because the HTTP
1717

1818
In many cases, it is caused by a browser plugin (e.g., an ad blocker or privacy protector) blocking the request.
1919

20+
## How to fix
21+
22+
- Check DevTools > Network to see whether the request failed due to DNS resolution, a timeout, a connection being refused, or a TLS handshake error.
23+
- Disable browser extensions or try a private browsing window, as ad blockers, firewalls, and privacy tools can block network requests.
24+
- Fix certificate or {{Glossary("TLS")}} issues, such as expired or invalid certificates.
25+
- Avoid mixed content: if the page is loaded over HTTPS, requests to HTTP resources can fail.
26+
Serve the API over HTTPS instead.
27+
- Confirm that the server is responding correctly and that the endpoint returns a response.
28+
29+
If you are using a local dev server, ensure that the correct scheme and port are used and that the service is running.
30+
2031
Other possible causes include:
2132

2233
- Trying to access an `https` resource that has an invalid certificate will cause this error.

0 commit comments

Comments
 (0)