diff --git a/editor/config-sample.js b/editor/config-sample.js index 39118a2a..fd93a225 100644 --- a/editor/config-sample.js +++ b/editor/config-sample.js @@ -79,6 +79,13 @@ svgEditor.setConfig({ // langPath: 'locale/', // extPath: 'extensions/', // jGraduatePath: 'jgraduate/images/', + /* + Uncomment the following to allow at least same domain (embedded) access, + including file:// access. + Setting as `['*']` would allow any domain to access but would be unsafe to + data privacy and integrity. + */ + // allowedOrigins: [window.location.origin || 'null'], // May be 'null' (as a string) when used as a file:// URL // DOCUMENT PROPERTIES // dimensions: [640, 480], // EDITOR OPTIONS diff --git a/editor/embedapi.html b/editor/embedapi.html index 5c76ced7..32be66d4 100644 --- a/editor/embedapi.html +++ b/editor/embedapi.html @@ -7,11 +7,12 @@