add missing cors for kiri worker

This commit is contained in:
Stewart Allen 2025-07-04 22:26:03 -04:00
commit 5bf4142355
2 changed files with 2 additions and 2 deletions

3
app.js
View file

@ -936,7 +936,8 @@ function cookieValue(cookie,key) {
function rewriteHtmlVersion(req, res, next) {
if ([
"/v2/kiri/"
"/v2/kiri/",
"/v2/lib/kiri-run/worker.js"
].indexOf(req.app.path) >= 0) {
addCorsHeaders(req, res);
} else if ([

View file

@ -1,6 +1,5 @@
/** Copyright Stewart Allen <sa@grid.space> -- All Rights Reserved */
import { base } from '../geo/base.js';
import { Layers } from './layers.js';
import { newPoint } from '../geo/point.js';
import { newPolygon } from '../geo/polygon.js';