Urgent.News

What's breaking now, across thousands of outlets.

Tech

WebUSB, WebHID, and Web Serial need an origin-level device policy

WebUSB, WebHID, and Web Serial need an origin-level device policy Browsers can now expose USB, human interface, and serial devices to web applications. These APIs make hardware workflows possible without a native installer. They also move a device permission decision into the web origin, where a compromised script, a third-party iframe, or an overly broad feature policy can change who gets…

The article discusses the need for an origin-level device policy for WebUSB, WebHID, and Web Serial APIs. These APIs allow web applications to access USB, human interface, and serial devices without a native installer, enabling hardware workflows. However, the device permission decision is moved into the web origin, which can be vulnerable to compromised scripts, third-party iframes, or overly broad feature policies.

The browser mediates access through a user-mediation point, but it does not guarantee the trustworthiness of every script on the origin. The article suggests implementing permissions policies, such as "usb", "hid", and "serial", to control access to specific APIs. It also recommends using a deny-by-default header for pages that do not require device access and filtering the chooser where the browser supports filters.

Additionally, the article advises testing iframe behavior from the same parent that runs in production and designing the device workflow as a capability, identifying the exact device class and operation.

Brief written by urgent.news from Dev.to's own syndicated text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Voice Robot for Outbound Calls: A Latency Budget from ASR to TTS

A voice robot that confirms appointments can be perfectly accurate and still feel broken. The customer says "yes, I'm coming", then hears nothing for two seconds, says "hello?", and the robot starts…

  • Voice robot latency critical for seamless customer experience
  • Turn latency target of 700 ms or less for natural feel
  • Call path divided into SIP trunk, media server, VAD, ASR, dialog logic, TTS, and RTP stages

Zero-Gas Autonomous Agents: Account Abstraction on Base L2

Zero-Gas Autonomous Agents: Account Abstraction on Base L2 Autonomous AI agents break the moment they touch an onchain transaction lifecycle.

  • Zero-gas autonomous agents on Base L2 eliminate onchain transaction friction
  • Smart Account holds ephemeral key for proposing operations
  • Paymaster Policy sponsors gas for validated transactions

More from Monday 9 November →