Comments (3)
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.
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.
Thanks for the bug report, should be fixed now in 0.3.7.
from ngupload.
Related Issues (20)
- ngUpload not working on Firefox 27 Mac - returns HTML instead of JSON
- getting a warning in console
- How to prefix file name that is uploaded HOT 10
- Minified version causing form submitted multiple times HOT 7
- 404 not found HOT 2
- Error handling HOT 6
- Setting custom headers HOT 8
- Auto start upload HOT 3
- custom headers using CORS in IE8 HOT 1
- Minified file not updated HOT 1
- $isLoading should be $isUploading in the readme HOT 1
- ng-upload executing multiple times
- ngUpload is not working HOT 3
- ng-upload.min.js is broken HOT 2
- How can we implement the progress bar for ngUpload? HOT 2
- Bower package is out-of-date HOT 3
- Hidden inputs do not work for objects
- Can we get upload percent in $scope? HOT 1
- BeforeSumbit executes after submit
- Is it possible to register the package on npm? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ngupload.