I want to automate a request on our website using Katalon Studio. So I go to the website and click one single button. After clicking this, the browser is loading and loading but doesn’t show any result.
Instead the following error message is displayed when opening the browser console (Chrome):
Access to XMLHTttpRequest at … (redirected from …) from origin … has been blocked by CORS policy:
Response to preflight request doesn’t pass access control check: No ‘Access-Control-Allow-Origin’ header is present on the requested ressource
I disabled the browsing protection for my Chrome profile but this didn’t work either.
Thank you for the detailed explanation about CORS issues. The reason the button didn’t work, was that while creating the test case I did not specify any further test steps like verify element present …
After adding this test step, Katalon clicked the button and opened the new window.
Still the CORS issue exists, but I could continue with test case automation.