[VIEWER-IFC] Cors

This commit is contained in:
Milovann Yanatchkov 2024-12-26 20:27:38 +01:00
parent 115f7fc0d3
commit d2aced3a7c

View file

@ -121,7 +121,10 @@ async function loadIfc() {
const file = await fetch(
//"https://thatopen.github.io/engine_components/resources/small.ifc",
//"http://localhost:3000/rvba/test/raw/branch/main/model.ifc",
filename
filename, {
method: 'GET',
mode: 'cors',
}
);
const data = await file.arrayBuffer();
const buffer = new Uint8Array(data);