Skip to content

HOTFIX to work properly in browsers wt CORS

Compare
Choose a tag to compare
@rondinif rondinif released this 11 May 06:58
· 61 commits to master since this release

fixed CORS disabled in Chrome breaks the operation od the service

src/lib/OpenDataLogicAgent.mjs::getPromiseOfWikiDataApiActionQuerySearchByName now has support for cors ; this fix errors in browser such as:

has been blocked by CORS policy: 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.