I have included the meteor / browser-policy-common content security policy package
Now I get this error from ostrio: CSP related files
Refused to create an employee from 'blob: http: // localhost: 3000 / ef628f55-736b-4b36-a32d-b1056adfaa8c ', because it violates the following content security policy directive: "default-src 'self' http: // fonts. Googleapis .com https://fonts.googleapis.com http://fonts.gstatic.com https://fonts.gstatic.com http://code.ionicframework.com https://code.ionicframework.com . " Note that 'worker-src' was not explicitly set, so 'default-src' is used as a fallback.
My actual browser policy configuration is as follows
import { BrowserPolicy } from 'meteor/browser-policy-common'; // e.g., BrowserPolicy.content.allowOriginForAll( 's3.amazonaws.com' ); // BrowserPolicy.content.allowFontOrigin("data:"); BrowserPolicy.framing.disallow(); BrowserPolicy.content.disallowInlineScripts(); BrowserPolicy.content.disallowEval(); BrowserPolicy.content.allowInlineStyles(); BrowserPolicy.content.allowFontDataUrl(); const trusted = [ 'fonts.googleapis.com', 'fonts.gstatic.com', 'code.ionicframework.com', ]; _.each(trusted, (origin) => { BrowserPolicy.content.allowOriginForAll(origin); });
, , ostrio: files blob: http://localhost: 3000/... ?
!
blob:, :
blob:
BrowserPolicy.content.allowOriginForAll('blob:');
Meteor blob: worker-src.
worker-src
Source: https://habr.com/ru/post/1677025/More articles:Get link to angular 4 element - angularcv2.imshow () kernel crash - pythonВыбираем каждую n-ю строку с помощью LINQ - c#Я презираю WIX, и я хочу, чтобы WIX умирал (реальное название: не может запускать собственное действие и одновременно удалять папку) - wixcannot remove enditable pip package - pythonAdding a component to TemplateRef using a structural directive - angularEvent Sourcing: Concurrent Event Creation - concurrencyИспользование..col в выражении j в data.table - rDynamically add a component to a child using a directive - javascriptBundleTransformer.Less does not process inactive files if the variables are out of order - c #All Articles