@@ -120,6 +120,11 @@ addLocale('de', {
120120} )
121121locale ( 'de' )
122122
123+ const jupyterProxyDomains =
124+ import . meta. env . REACT_APP_JUPYTER_PROXY_DOMAINS . split ( ' ' ) . map (
125+ ( el ) => 'https://' + el
126+ )
127+
123128class QRScan extends Component {
124129 constructor ( args ) {
125130 super ( args )
@@ -358,6 +363,20 @@ class App extends Component {
358363 error
359364 )
360365 } )
366+ axios ( { url : '/config/proxy.json' , baseURL : '/' } )
367+ . then ( ( res ) => {
368+ const config = res . data
369+ console . log ( 'We got a proxy config' , config )
370+ if ( config ?. allowedSites ) {
371+ this . setState ( { allowedSites : config . allowedSites } )
372+ }
373+ } )
374+ . catch ( ( error ) => {
375+ console . log (
376+ 'Get config/proxy.json problem/not found, this must not be an error' ,
377+ error
378+ )
379+ } )
361380 }
362381
363382 onChangeCalendar ( e ) {
@@ -2905,6 +2924,11 @@ class App extends Component {
29052924 filename = { this . state . jupyterFilename }
29062925 appid = { this . state . selectedJupyterApp ?. appid }
29072926 rerunAtStartup = { this . state . jupyterRerunStartup }
2927+ GDPRProxy = { {
2928+ proxySites : jupyterProxyDomains ,
2929+ allowedSites : this . state . allowedSites || [ ] ,
2930+ proxyURL : globalThis . location . origin + '/jupyter/proxy/'
2931+ } }
29082932 stateCallback = { ( stateChange ) => {
29092933 this . setState ( ( state ) => ( {
29102934 jupyterState : {
0 commit comments