11
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Chromeのデベロッパー ツールにペースト出来ない

Last updated at Posted at 2023-12-02

デベロッパーツールのWarning

Google Chrome(v121) のデベロッパーツール(DevTools)のコンソールにコードをコピペしようとすると以下のようにWarningが出た。

image.png

Warning: Don’t paste code into the DevTools Console that you don’t understand or haven’t reviewed yourself. This could allow attackers to steal your identity or take control of your computer. Please type ‘allow pasting’ below to allow pasting.

下記のように {PH1} と言われることもあるが、allow pasting 打てば良い

Warning: Don’t paste code into the DevTools Console that you don’t understand or haven’t reviewed yourself. This could allow attackers to steal your identity or take control of your computer. Please type {PH1} below to allow pasting.

解決

書いてあるとおり allow pasting って打つだけ

image.png

おまけ

デベロッパーツールの設定で、「Show warning about Selt-XSS when pasting code」から設定をオフにできる
image.png

11
7
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
11
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?