Skip to content

Commit

Permalink
Update requests CORS policy (NB server must follow it)
Browse files Browse the repository at this point in the history
  • Loading branch information
blokhin authored Jan 16, 2025
1 parent 8381b2c commit 746d5fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plot/plot.view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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' ) )
Expand Down

0 comments on commit 746d5fd

Please sign in to comment.