Giter Club home page Giter Club logo

Comments (3)

twilson63 avatar twilson63 commented on June 27, 2024

@denyo,

Hey thanks, I am glad the directive is coming handy. As far as your question, I do not know much about this issue, but did fine this on SO -> http://stackoverflow.com/questions/4324108/unsafe-javascript-attempt-to-access-frame-with-url

It may help, if it does not, you may want to see if you can proxy the request through your frontend.com so that both the parent and frame are from the same domain.

Thanks

Tom

from ngupload.

denyo avatar denyo commented on June 27, 2024

Thank you for your quick reply.
Actually I've seen that post on stackoverflow before but couldn't get it to work. So now I simply post everything to the frontend domain and from there I send another request to the backend. I solved the session issue by sending the current user id with the initial request.

I also discovered a minor bug.
You bind the load event to the iframe before it is appended to the DOM. In webkit browsers this leads to triggering that event twice. One time when the iframe is added and another time when the actual content is loaded. By changing the order to

form.parent().append(iframe);  
iframe.bind('load', function () {...

it works as it should.

Cheers!

from ngupload.

twilson63 avatar twilson63 commented on June 27, 2024

Thanks for the bug report, should be fixed now in 0.3.7.

from ngupload.

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.