Content-Security-Policy object-src blob

前端 未结 2 692
清酒与你
清酒与你 2021-01-07 16:13

When using a content-security-policy and I try to follow a process in Chrome 41 (beta) using window.URL.createObjectURL I get an error like the following:

相关标签:
2条回答
  • 2021-01-07 16:38

    For Chrome 47.0.2526.73:

    default-src * blob:;

    worked for me

    0 讨论(0)
  • 2021-01-07 16:48

    The spec compliant answer is object-src 'self' blob:

    blob: should only match blob: explicitly, and not 'self' or *. This is a bug in Chrome, and was recently fixed in Firefox 40.

    0 讨论(0)
提交回复
热议问题