You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the fetched URL exposes the CORS header 'Access-Control-Allow-Origin': '*', the request fails. I investigate and the problem is in json-schema-ref-parser.
A wildcard '*' cannot be used in the 'Access-Control-Allow-Origin' header when the credentials flag is true.
Webpack is using this lib as a http module https://github.com/substack/http-browserify. And for some reason, the lib set by default xhr.withCredentials to true.
This issue is fixed in newer versions of the library. Please upgrade to the latest version, which includes many critical bug fixes, as well as many new features.
When the fetched URL exposes the CORS header
'Access-Control-Allow-Origin': '*'
, the request fails. I investigate and the problem is injson-schema-ref-parser
.Webpack is using this lib as a http module
https://github.com/substack/http-browserify
. And for some reason, the lib set by defaultxhr.withCredentials
totrue
.Adding
withCredentials: false
on params given to http module solves the issue https://github.com/BigstickCarpet/json-schema-ref-parser/blob/v1.4.1/lib/read.js#L176The text was updated successfully, but these errors were encountered: