Allowing the Bluetooth access

When I try to use Bluetooth to control a device through a React Typescript application, a security error occurs.

ERROR: SecurityError: Failed to execute 'requestDevice' on 'Bluetooth': Access to the feature "bluetooth" is disallowed by permissions policy.

It seems Replit does not allow to use Bluetooth. Is there another way to access the Bluetooth devices or change that permission?

1 Like

Update: The permission policy is provided by Web Bluetooth API and it is not only about Replit. The API is not allowed to be used from cross-origin iframes. [1]

3 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.