Hello <#C03NAEH5LVA|general>, Im calling web servi...
# general
s
Hello #general, Im calling web service that i mocked in wire mock from my frontend, but i have cors problem, from origin 'http://localhost:8080' 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 resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled. Can anyone can help me to configure CORS with wiremock?
l
Hi, you can enable stuc cors in the config. If you are running standalone, you can use the
--enable-stub-cors
startup parameter. If you are configuring programatically then
wireMockConfig().stubCorsEnabled(true)