securitypolicyviolation

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since October 2018.

Note: This feature is only available in Web Workers.

Event securitypolicyviolation được kích hoạt khi Content Security Policy bị vi phạm trong một worker.

Cú pháp

Xem tài liệu gốc để biết cú pháp chi tiết.

Ví dụ

Xem tài liệu gốc để biết ví dụ.

Đặc tả kỹ thuật

Thông số kỹ thuật
Content Security Policy Level 3
# eventdef-globaleventhandlers-securitypolicyviolation

Tương thích trình duyệt