[WordPress] 外掛分享: Reporting API

首頁外掛目錄 › Reporting API
⚠ 此外掛已下架 — 不再更新維護,建議勿安裝。
30+
安裝啟用
尚無評分
2556 天前
最後更新
問題解決
WordPress 4.7+ PHP 5.6+ v0.1.1 上架:2019-03-04

內容簡介

如Google開發者博客中提到:

報告API定義了一個新的HTTP標頭,Report-To,使Web開發人員能夠指定服務器端點來接收瀏覽器發出的警告和錯誤。報告API可以收集類似於CSP違規、功能策略違規、過時警告、瀏覽器介入和網絡錯誤等瀏覽器生成的警告。

此外掛在WordPress中提供了符合Reporting API規範的瀏覽器報告的存儲機制和端點,以及一個管理界面來瀏覽這些報告。還提供了一個API來發送Report-To響應標頭。

由於Reporting API規範仍在發展和早期階段,此外掛目前是一個實驗性的原型,以展示Reporting API如何在WordPress中使用。

你知道嗎?

還有一個名為功能策略的新規範,將與Reporting API規範集成。同樣有一個WordPress外掛程式Feature Policy。

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.1.1) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Reporting API」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

As noted on the Google Developers blog:

The Reporting API defines a new HTTP header, Report-To, that gives web developers a way to specify server endpoints for the browser to send warnings and errors to. Browser-generated warnings like CSP violations, Feature Policy violations, deprecations, browser interventions, and network errors are some of the things that can be collected using the Reporting API.

This plugin provides a storage mechanism and endpoint for browser reports according to the Reporting API spec in WordPress, as well as an admin interface for browsing these reports. It also provides an API for sending the Report-To response headers.
As the Reporting API specification is still evolving and at an early stage, the plugin reflects that and is currently an experimental prototype, to demonstrate how Reporting API can be used in WordPress.
Did you know?
There is also a new specification called Feature Policy which will integrate with the Reporting API specification. There is a WordPress plugin for Feature Policy as well.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon