Repo used for testing: https://github.com/yochannah/cytoscape-intermine/tree/cors-investigations - cors investigation branch.
To test:
- Clone the repo and checkout
cors-investigations
branch npm install
dependencies.npm install ../some/path/to/locally/compiled/imjs
- In the
cytoscape-intermine/node_moduled/imjs
directory changemain : build/service
tomain : dist/im.js
if needed. - Back in the
cytoscape-intermine
directory, rungulp js
to recompile the cytoscape viewer with the new copy of imjs. - Test cytoscape-intermine for CORS errors. This might be via
npm gulpDev
or some other serve command.
In imjs, for Yo, the cors error doesn't present until commit e2a98cf
- see the diff: https://github.com/intermine/imjs/compare/55e7e99...e2a98cf?w=1
Good: 55e7e99
Bad: e2a98cf