Iām trying to use a mock server for my vue project, and Iāve been getting this error when I call a get.
Access to XMLHttpRequest at āhttps://13bcbcaa-8f9d-4f1f-b9a1-aefa66b64fbf.mock.pstmn.io/settingsā from origin āhttps://localhost:3001ā has been blocked by CORS policy: The value of the āAccess-Control-Allow-Originā header in the response must not be the wildcard ā*ā when the requestās credentials mode is āincludeā. The credentials mode of requests initiated by the XMLHttpRequest is controlled by the withCredentials attribute.
Hereās what my setup looks like on Vueās end:
Hereās what my headers look like on postman:
Itās complaining about not using the wildcard, but Iām specifying what Iām sending my requests from in āAccess-Control-Allow-Originā. The call works just fine when I turn off allow-credentials though.