From 746d5fdfea309b0b9bc003bb10e0c42c9a747d42 Mon Sep 17 00:00:00 2001 From: Evgeny Blokhin Date: Thu, 16 Jan 2025 01:00:47 +0100 Subject: [PATCH] Update requests CORS policy (NB server must follow it) --- plot/plot.view.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plot/plot.view.ts b/plot/plot.view.ts index 8cb338b..5a451a0 100644 --- a/plot/plot.view.ts +++ b/plot/plot.view.ts @@ -6,7 +6,7 @@ namespace $.$$ { static fetch_plot_json( request: RequestInfo | null ){ if ( request == null ) return null - const json = $mol_fetch.json( request ) as any + const json = $mol_fetch.json( request, { credentials: 'include' } ) as any if ( json && json.error ) return $mol_fail( new $mol_data_error( json.error ) ) if ( !json || !json.use_visavis_type ) return $mol_fail( new $mol_data_error( 'Error: unknown data format' ) )