Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vidjil
vidjil
Commits
8167af43
Commit
8167af43
authored
Apr 14, 2016
by
Ryan Herbert
Browse files
conf.js.sample, crossDomain.js added config parameter for setting the imgt proxy address
parent
91c344d4
Changes
2
Hide whitespace changes
Inline
Side-by-side
browser/js/conf.js.sample
View file @
8167af43
...
...
@@ -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"
}
browser/js/crossDomain.js
View file @
8167af43
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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment