You are talking about having the user to allow clipboard access ? If not be more explicit about which problem you are talking about.
From a security perspective a browser should be an isolated sandbox and the user is kept in control. So you'll see this for many cases in a browser from going full screen to printing documents or now requiring https for capturing audio/video etc... Basically
everything that goes between the browser and the local environment.
Keep in mind we know nothing about your situation so rather than being allusive always tell as directly as possible what is your concern so that we can better understand what you really need.
Member
92 Points
534 Posts
Is it real? that I can not get text from clipboard via JS
Apr 09, 2019 07:46 AM|fatihbarut|LINK
Hi all,
I couldn't believe that Js can not access to the clipboard directly. It can't be real.
Is it real?
All-Star
48510 Points
18071 Posts
Re: Is it real? that I can not get text from clipboard via JS
Apr 09, 2019 08:05 AM|PatriceSc|LINK
Hi,
You are talking about having the user to allow clipboard access ? If not be more explicit about which problem you are talking about.
From a security perspective a browser should be an isolated sandbox and the user is kept in control. So you'll see this for many cases in a browser from going full screen to printing documents or now requiring https for capturing audio/video etc... Basically everything that goes between the browser and the local environment.
Member
92 Points
534 Posts
Re: Is it real? that I can not get text from clipboard via JS
Apr 09, 2019 09:12 AM|fatihbarut|LINK
https://alligator.io/js/async-clipboard-api/
All-Star
48510 Points
18071 Posts
Re: Is it real? that I can not get text from clipboard via JS
Apr 09, 2019 09:22 AM|PatriceSc|LINK
You were just searching the clipboard API ?
Keep in mind we know nothing about your situation so rather than being allusive always tell as directly as possible what is your concern so that we can better understand what you really need.
You have also https://developer.mozilla.org/en-US/docs/Web/API/Clipboard_API and Mozilla is otften a good starting point.
Member
92 Points
534 Posts
Re: Is it real? that I can not get text from clipboard via JS
Apr 09, 2019 09:26 AM|fatihbarut|LINK
thanks