Disable Paste Protection in Edge DevTools - Qpidi
top of page
  • Writer's pictureStrofl

Disable Paste Protection in Edge DevTools - Qpidi

Have you ever encountered a warning in Microsoft Edge's DevTools—a.k.a. Internet Explorer — that prevents you from pasting code into the developer console? Let me quickly fix that for you. Here's how to Disable Paste Protection in Edge DevTools.



When you open the Developer Tools in the Edge browser and go to the Console tab, if you attempt to paste a script or any command, you may see a warning message. This message is a security feature to prevent self-XSS attacks, which can happen if you paste malicious scripts that you don't understand or haven't reviewed yourself.


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 and hit Enter to allow pasting.

How to Disable Paste Protection in Edge DevTools?


To bypass this warning and enable pasting, you would have to type "allow pasting" into the console and press Enter as instructed by the warning. This action will permit you to paste code for that session.


How do I turn it on/off?

Open Edge DevTools > Click the gear icon or three-dot menu (top-right corner) > Settings > Experiments > Uncheck "Show warning about Self-XSS when pasting code".


This should allow pasting directly into the console without the Self-XSS warning. If prompted, type "allow pasting" to proceed.


You can also follow step-by-step visual explanations for clarity.



Step 1. Open Developer Tools in Edge: Start by opening the developer tools in the Edge browser. You can do this by clicking the three-dot menu at the top-right of the browser and selecting "More tools" > "Developer tools," or by simply pressing F12 on your keyboard or right mouse click and select Inspect.


 


Step 2. Open Settings in DevTools: To change this setting, click on the three dot icon after that click to gear icon in the Developer Tools to open the "Settings" menu.


 


Step 3. Navigate to the Experiments Section: In the Settings menu, go to the "Experiments" section. This is where Edge features in development or testing are available to be enabled or disabled by users.


 


Step 4. Toggle Paste Protection Setting: Look for the setting labeled "Show warning about Self-XSS when pasting code" in the list of experiments. If the box is checked, uncheck it to disable the paste protection warning.


 

Step 5. Confirm Changes and Close Settings: After you uncheck the setting, close the settings menu. You should now be able to paste code into the console without seeing the self-XSS warning.


 

As you can see, after changing the settings, you can paste the code without receiving a warning and without any problems. Have a great day!

113 views0 comments

Subscribe to Our Newsletter

Thanks for submitting!

  • Instagram
  • Facebook
  • Twitter
  • TikTok

© 2023 by Qpidi

bottom of page