Skip to content

Commit

Permalink
cors
Browse files Browse the repository at this point in the history
  • Loading branch information
ctwhome committed Mar 19, 2024
1 parent d7145ed commit 7b8208e
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/routes/viewer/fetchAndPrepareData/dataSetup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export async function dataSetup(visible_data, scene) {

// open array, no need to opening it again for each variable

const store = new HTTPStore(datasetUrl, { fetchOptions: { redirect: 'follow', mode: 'no-cors', credentials: 'include' } });
const store = new HTTPStore(datasetUrl, { fetchOptions: { redirect: 'follow', mode: 'cors', credentials: 'include' } });
for (const variable of visible_data) {
zarrdata[variable] = await openArray({ store, path: variable, mode: 'r' });
const dimensions = variable === 'thetavmix' ? 3 : 4;
Expand Down
4 changes: 2 additions & 2 deletions src/routes/viewer/sceneSetup/boxSetup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ export const boxes: {
// They should be all enabled by default
//
export const data_layers = [
// 'qr', // rain
// 'ql', // clouds
'qr', // rain
'ql', // clouds
'thetavmix', // temperature
];

Expand Down
Empty file.
Empty file.

0 comments on commit 7b8208e

Please sign in to comment.