Content-Security-Policy object-src blob

前端 未结 2 786
清酒与你
清酒与你 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: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.

提交回复
热议问题