[VIEWER-IFC] Cors
This commit is contained in:
parent
115f7fc0d3
commit
d2aced3a7c
1 changed files with 4 additions and 1 deletions
|
|
@ -121,7 +121,10 @@ async function loadIfc() {
|
||||||
const file = await fetch(
|
const file = await fetch(
|
||||||
//"https://thatopen.github.io/engine_components/resources/small.ifc",
|
//"https://thatopen.github.io/engine_components/resources/small.ifc",
|
||||||
//"http://localhost:3000/rvba/test/raw/branch/main/model.ifc",
|
//"http://localhost:3000/rvba/test/raw/branch/main/model.ifc",
|
||||||
filename
|
filename, {
|
||||||
|
method: 'GET',
|
||||||
|
mode: 'cors',
|
||||||
|
}
|
||||||
);
|
);
|
||||||
const data = await file.arrayBuffer();
|
const data = await file.arrayBuffer();
|
||||||
const buffer = new Uint8Array(data);
|
const buffer = new Uint8Array(data);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue