Reputation: 652
I need to make the site setting of clipboard to allow but it's coming block and blurred(not changeable).
for the unsecured websites(HTTP).
So, Is there any way to edit this setting and change it to allow?
Upvotes: 12
Views: 5919
Reputation: 1478
One option here is to add the origin for the website in question to the Chrome #unsafely-treat-insecure-origin-as-secure flag. This will then allow clipboard access on the origin. Of course, this is only advisable if you really do trust the insecure origin.
Upvotes: 17
Reputation: 154
Sorry, there isn't any way to do this. Per the Clipboard specification, the clipboard can only be accessed by secure contexts (HTTPS) (see SecureContext
in the specification). Therefore, all browsers should only allow this API for HTTPS.
The chrome browser is open source, so this secure context requirement can also be verified here in the source code.
Upvotes: 2