Repo used for testing: https://github.com/yochannah/cytoscape-intermine/tree/cors-investigations - cors investigation branch.
To test:
- Clone the repo and checkout
cors-investigationsbranch npm installdependencies.npm install ../some/path/to/locally/compiled/imjs- In the
cytoscape-intermine/node_moduled/imjsdirectory changemain : build/servicetomain : dist/im.jsif needed. - Back in the
cytoscape-interminedirectory, rungulp jsto recompile the cytoscape viewer with the new copy of imjs. - Test cytoscape-intermine for CORS errors. This might be via
npm gulpDevor 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