GithubHelp home page GithubHelp logo

Comments (9)

levibotelho avatar levibotelho commented on June 1, 2024

I assume that you are talking about the completed sample in "A Simple App"? I cannot reproduce the issue on my machine, so I'll take a deeper look into this later on today. Thanks for reporting the error.

from learnangular.

manojlds avatar manojlds commented on June 1, 2024

Getting the same error on Chrome on Windows:

Error: Blocked a frame with origin "http://www.learn-angular.org" from accessing a cross-origin frame.
    at Error (native)
    at h.n.run (http://www.learn-angular.org/bundles/scripts?v=f0y9mqEfGJgi7v47CYJOTsTHeGJYfrd2tWBpTm54HXg1:1:1741)
    at http://ajax.googleapis.com/ajax/libs/angularjs/1.2.12/angular.min.js:163:57
    at http://ajax.googleapis.com/ajax/libs/angularjs/1.2.12/angular.min.js:179:344
    at h.$eval (http://ajax.googleapis.com/ajax/libs/angularjs/1.2.12/angular.min.js:102:456)
    at h.$apply (http://ajax.googleapis.com/ajax/libs/angularjs/1.2.12/angular.min.js:103:212)
    at HTMLButtonElement.<anonymous> (http://ajax.googleapis.com/ajax/libs/angularjs/1.2.12/angular.min.js:179:326)
    at http://ajax.googleapis.com/ajax/libs/angularjs/1.2.12/angular.min.js:27:208
    at q (http://ajax.googleapis.com/ajax/libs/angularjs/1.2.12/angular.min.js:7:386)
    at HTMLButtonElement.Yc.c (http://ajax.googleapis.com/ajax/libs/angularjs/1.2.12/angular.min.js:27:190) 

from learnangular.

levibotelho avatar levibotelho commented on June 1, 2024

Thanks for the additional input. Good to know it's not just on Mac. I'll be looking into this shortly.

from learnangular.

levibotelho avatar levibotelho commented on June 1, 2024

Just as a quick update, I am looking into this and think I've found the reason. I believe that this error is caused by the fact that the browser loads Angular via the Google CDN. If I'm on the right track, this will be fixed within the next few days.

from learnangular.

levibotelho avatar levibotelho commented on June 1, 2024

Alright I've taken a first shot at correcting this. If somebody could please try this out and let me know whether or not the issue is resolved, that would be fantastic as I cannot reproduce the error on my own machine.

If you do still get the error, please do me a favour and check that you are running the updated version of the site and are not being served a cached copy. To do this, run the Chrome dev tools and inspect the iframe contents. You should get something that looks like this.

<html ng-app="root" class="ng-scope">
    <head>
        <style type="text/css">@charset "UTF-8";[ng\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide{display:none !important;}ng\:form{display:block;}</style>
    </head>
    <body>
        <div ng-controller="index" class="ng-scope ng-binding">Hello World!</div>
        <script src="/Scripts/angular/angular.min.js"></script>
        <!-- ... -->

If the script tag does not point to /Scripts... but instead points to the Google CDN, then you're getting the cached page. (CTRL+F5 in that case)

Thanks!

from learnangular.

OldPotatoes avatar OldPotatoes commented on June 1, 2024

I'm getting a similar error in Chrome on Windows 8.1 (though not running it in Windows 8 mode):

Error: Blocked a frame with origin "http://learn-angular.org" from accessing a cross-origin frame.
at Error (native)
at h.n.run (http://learn-angular.org/bundles/scripts?v=daziDimy4BLVdE8_-UKzkZUI71YaUbCAkBxFFwYZpaE1:1:1776)
at http://ajax.googleapis.com/ajax/libs/angularjs/1.2.12/angular.min.js:163:57
at http://ajax.googleapis.com/ajax/libs/angularjs/1.2.12/angular.min.js:179:344
at h.$eval (http://ajax.googleapis.com/ajax/libs/angularjs/1.2.12/angular.min.js:102:456)
at h.$apply (http://ajax.googleapis.com/ajax/libs/angularjs/1.2.12/angular.min.js:103:212)
at HTMLButtonElement. (http://ajax.googleapis.com/ajax/libs/angularjs/1.2.12/angular.min.js:179:326)
at http://ajax.googleapis.com/ajax/libs/angularjs/1.2.12/angular.min.js:27:208
at q (http://ajax.googleapis.com/ajax/libs/angularjs/1.2.12/angular.min.js:7:386)
at HTMLButtonElement.Yc.c (http://ajax.googleapis.com/ajax/libs/angularjs/1.2.12/angular.min.js:27:190)

The script tag is pointing to:

<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.2.12/angular.min.js"></script>

I tried Ctrl-F5, but it remained the same.

from learnangular.

levibotelho avatar levibotelho commented on June 1, 2024

Alright I'll take a look at this when I find the time. Thank you for reporting it!

from learnangular.

mmahalwy avatar mmahalwy commented on June 1, 2024

what happened to this?

from learnangular.

levibotelho avatar levibotelho commented on June 1, 2024

I thought I fixed it. Experiencing the problem?

from learnangular.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.