add missing cors for kiri worker
This commit is contained in:
parent
c9667476ee
commit
5bf4142355
2 changed files with 2 additions and 2 deletions
3
app.js
3
app.js
|
|
@ -936,7 +936,8 @@ function cookieValue(cookie,key) {
|
||||||
|
|
||||||
function rewriteHtmlVersion(req, res, next) {
|
function rewriteHtmlVersion(req, res, next) {
|
||||||
if ([
|
if ([
|
||||||
"/v2/kiri/"
|
"/v2/kiri/",
|
||||||
|
"/v2/lib/kiri-run/worker.js"
|
||||||
].indexOf(req.app.path) >= 0) {
|
].indexOf(req.app.path) >= 0) {
|
||||||
addCorsHeaders(req, res);
|
addCorsHeaders(req, res);
|
||||||
} else if ([
|
} else if ([
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,5 @@
|
||||||
/** Copyright Stewart Allen <sa@grid.space> -- All Rights Reserved */
|
/** Copyright Stewart Allen <sa@grid.space> -- All Rights Reserved */
|
||||||
|
|
||||||
import { base } from '../geo/base.js';
|
|
||||||
import { Layers } from './layers.js';
|
import { Layers } from './layers.js';
|
||||||
import { newPoint } from '../geo/point.js';
|
import { newPoint } from '../geo/point.js';
|
||||||
import { newPolygon } from '../geo/polygon.js';
|
import { newPolygon } from '../geo/polygon.js';
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue