testcafe icon indicating copy to clipboard operation
testcafe copied to clipboard

[docs] Extend the 'RequestMock: CORS validation failed for a request specified as <filter rule>' warning

Open miherlosev opened this issue 4 years ago • 2 comments

At present: image

Need to add a phrase how to fix this warning. For example such a phrase: To fix this warning specify the necessary CORS headers in respond method. For more detail see https://devexpress.github.io/testcafe/documentation/reference/test-api/requestmock/respond.html URL.

miherlosev avatar Jan 08 '21 07:01 miherlosev

@miherlosev what are actually the right headers to use when this error pops up?

lonely-caat avatar Jun 09 '21 08:06 lonely-caat

The server response should have the Access-Control-Allow-Origin header that indicates that cross-origin access is permitted. You can find other headers that can be included in the server's response in the HTTP response headers section.

VasilyStrelyaev avatar Jun 10 '21 09:06 VasilyStrelyaev