Commit 8167af43 authored by Ryan Herbert's avatar Ryan Herbert

conf.js.sample, crossDomain.js added config parameter for setting the imgt proxy address

parent 91c344d4
......@@ -38,4 +38,7 @@ var config = {
/* 3) Static file autoload, possibly with an .analysis file */
"autoload" : "data/Stanford-S22.vidjil"
// "autoload_analysis" : "data/Stanford-S22.analysis"
// Proxy config for IMGT querying
"proxy": "http://test.vidjil.org/proxy"
}
var PROXY_ADDRESS = "https://dev.vidjil.org/proxy/imgt"
//parametre IMGT par defaut
function initImgtInput() {
var imgtInput = {};
......@@ -169,7 +171,11 @@ function imgtPostForSegmenter(data, system) {
//disabled due to security concerns
//form.action = "http://www.imgt.org/IMGT_vquest/vquest";
//using proxy on server to allow requests on other site than vidjil one's in JS.
form.action = "https://test.vidjil.org/vidjil/proxy/imgt";
if (typeof config != 'undefined') {
form.action = config.proxy
} else {
form.action = PROXY_ADDRESS;
}
form.method = "POST";
for (var k in imgtInput) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment