Skip to content

Commit e77676c

Browse files
committed
updates
1 parent f7901c3 commit e77676c

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

docs/app/references/error-messages.mdx

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -956,11 +956,21 @@ Synchronous XHR requests often cause hangs on the web, especially with poor netw
956956

957957
:::
958958

959-
Cypress does not fully support synchronous XHR requests in the following scenarios:
959+
When using synchronous XHR requests, you may see the following warnings:
960960

961-
- When using `cy.intercept()` with a `routeHandler` to intercept a synchronous XHR request.
962-
- When applying cookies to a synchronous XHR request.
963-
- When setting cookies from the response of a synchronous XHR request.
961+
> **Warning: Synchronous XHR request was not intercepted: http://example.com.**
962+
963+
Cypress is unable to intercept a synchronous XHR request if the [`cy.intercept()`](/api/commands/intercept) is using a [`routeHandler`](/api/commands/intercept#routeHandler-Function).
964+
Thus, the [`routeHandler`](/api/commands/intercept#routeHandler-Function) won't be executed and the request will be sent to the origin server without any modifications.
965+
An intercept with a [`StaticResponse`](/api/commands/intercept#staticResponse-StaticResponse) does not have this limitation and will still be executed.
966+
967+
> **Warning: Cookies may not have been applied to synchronous XHR request: http://example.com.**
968+
969+
Cypress is unable to apply cookies to a synchronous XHR request if the request is cross-origin to the `top` origin.
970+
971+
> **Warning: Cookies may not have been set for synchronous XHR response: http://example.com.**
972+
973+
Cypress is unable to set cookies for a synchronous XHR response if the request is cross-origin to the `top` origin.
964974

965975
## Browser Errors
966976

0 commit comments

Comments
 (0)