Okay, I just saw that the problem was simply that it was missing requesting permissions to copy.
I don't know if this will give me problems in the future.
I want that when the user presses a button the data is copied and sent to another website where it will be pasted, but if the user does not accept the permissions this will not work, right?