Chrome displays error message in iframe - Unsual code detected
See original GitHub issueUpdate
Please use Firefox while we come up with a fix. Apologies for the inconvenience.
Challenge Add a Submit Button to a Form has an issue.
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.88 Safari/537.36
.
Description edited by @systimotic for clarification There is a warning displayed in the phone frame. It says: “Chrome detected unusual code on this page and blocked it to protect your personal information (for example, passwords, phone numbers, and credit cards).”
Code:
<link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
<style>
.red-text {
color: red;
}
h2 {
font-family: Lobster, Monospace;
}
p {
font-size: 16px;
font-family: Monospace;
}
.thick-green-border {
border-color: green;
border-width: 10px;
border-style: solid;
border-radius: 50%;
}
.smaller-image {
width: 100px;
}
</style>
<h2 class="red-text">CatPhotoApp</h2>
<p>Click here for <a href="#">cat photos</a>.</p>
<a href="#"><img class="smaller-image thick-green-border" alt="A cute orange cat lying on its back. " src="https://bit.ly/fcc-relaxing-cat"></a>
<p>Things cats love:</p>
<ul>
<li>cat nip</li>
<li>laser pointers</li>
<li>lasagna</li>
</ul>
<p>Top 3 things cats hate:</p>
<ol>
<li>flea treatment</li>
<li>thunder</li>
<li>other cats</li>
</ol>
<form action="/submit">
</form>
<form action="/submit-cat-photo">
<input type="text" placeholder="cat photo URL">
</form>
Issue Analytics
- State:
- Created 7 years ago
- Reactions:5
- Comments:72 (25 by maintainers)
Top Results From Across the Web
"Chrome detected unusual code" error in previously working ...
I had a perfectly working PHP page with an iframe inside. Suddenly it stoped working in Chrome with this error: Chrome detected unusual...
Read more >Chrome 108 iframe problem - Google Support
After upgrading to Chrome 108, few pages with iframe and forms encounters the error - no dropdown on the form. But on the...
Read more >341555 - HTTP iFrame loaded into HTTPS page (Mixed active ...
Issue 341555: HTTP iFrame loaded into HTTPS page (Mixed active content protection bypass) ... test_2.htm is a random page served over HTTP. It...
Read more >Error: Embed code can only contain one "<iframe>"
In the Developer Tools pane, identify the embedded URL. For this example, the unique identifier '3623' is used to identify the embedded ...
Read more >Troubleshooting SSO embed authentication errors | Looker
If you're getting redirected to the login page or to a page with the error Single sign on failure. Please contact an adinistrator....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I can reproduce this with Chrome 57, both on the beta and the live site.
The version where this can be reproduced is 57.0.2987.88. From the Chrome releases blog, on March 9th:
The error:
This mentions that the error we’re seeing is indeed caused by functionality enabled in Chrome 57.
The warning seems to be triggered by having a form in the iframe. Here’s a StackOverflow post with a suggestion on how to solve this.
I tested how Codepen handles this. It does work fine there. Some notable differences:
ALLOWALL
on Codepen,SAMEORIGIN
on fCC. I think this is unlikely to be the cause, but it may be related.1; mode=block
on fCC, but not present on Codepen. I think this is why it does work on Codepen but not on fCC./cc @freeCodeCamp/moderators This looks like it has the potential to become a very serious issue for us, but I’m not certain. Can anybody help investigate?
@QuincyLarson — Yes, I still have this problem on Chrome 58.
@tobi10 — A simple refresh simply reloads the page, but doesn’t refresh everything; it still uses the cache. To force a complete refresh and ignore the cache, press
Ctrl
+Shift
+R
. It should save you the hassle of signing out and in again.