File tree 2 files changed +7
-3
lines changed 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -207,6 +207,8 @@ function renderRevenueAndCashflowProfile(resultsData) {
207
207
208
208
}
209
209
210
+ let _UI_KEY = 'RONSrTE7Es7iIJ2D9S2Xn3e49vCXV1Sl7FFi3kaU'
211
+
210
212
function submitForm ( oFormElement ) {
211
213
let parsed_params = JSON . parse ( oFormElement . querySelector ( 'textarea[name="geophires_input_parameters"]' ) . value )
212
214
@@ -276,6 +278,7 @@ function submitForm(oFormElement) {
276
278
}
277
279
278
280
xhr . open ( oFormElement . method , oFormElement . getAttribute ( "action" ) )
281
+ xhr . setRequestHeader ( 'x-api-key' , _UI_KEY ) ;
279
282
xhr . send ( JSON . stringify ( {
280
283
'geophires_input_parameters' : parsed_params ,
281
284
'output_format' : 'json'
@@ -362,7 +365,8 @@ $(document).ready(function () {
362
365
363
366
if ( location . hostname . indexOf ( 'localhost' ) !== - 1 ) {
364
367
const path = 'get-geophires-result'
365
- const url = `https://dev.gt1.scientificweb.services/${ path } `
368
+ const url = `https://dev.gtp.scientificweb.services/${ path } `
369
+ _UI_KEY = 'dQz4mnNwyF68ho47m0biA2Q7mEt5Ub1Q2SV9ezhc'
366
370
$ ( 'form.apiActionForm' ) . attr ( 'action' , url )
367
371
368
372
setVisible ( $ ( '#json-input-tab' ) , true )
Original file line number Diff line number Diff line change 122
122
id ="geophires_param_form "
123
123
method ="POST "
124
124
class ="apiActionForm "
125
- action ="https://prod.gt1 .scientificweb.services/get-geophires-result ">
125
+ action ="https://api.gtp .scientificweb.services/get-geophires-result ">
126
126
</ form >
127
127
</ div >
128
128
< div class ="mui-tabs__pane " id ="pane-default-3 ">
132
132
< form
133
133
method ="POST "
134
134
class ="apiActionForm "
135
- action ="https://prod.gt1 .scientificweb.services/get-geophires-result "
135
+ action ="https://api.gtp .scientificweb.services/get-geophires-result "
136
136
onsubmit ="return submitForm(this); ">
137
137
< textarea id ="geophires_input_parameters "
138
138
name ="geophires_input_parameters "
You can’t perform that action at this time.
0 commit comments