Kishor
Kishor

Reputation: 652

How to change the site setting of unsecured(http) websites on chrome?

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?

site setting page of unsecured site

Upvotes: 12

Views: 5919

Answers (2)

AndrewJC
AndrewJC

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.

enter image description here

Upvotes: 17

Darwin Huang
Darwin Huang

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

Related Questions