Closed esbanarango closed 9 years ago
@JangoSteve Any chance to check this? Thanks.
@JangoSteve I have seen a lot of new issues on this project and some new PR. I think this project is awesome and very useful. I offer myself to maintain this if you're maybe now too busy.
@esbanarango Thanks for the offer. I just emailed you and went over some things like testing the project and whatnot for new features. If it's possible to read through that and through the "Tests" section of the Readme for this project, it'd be great if we could come up with a test case for this fix.
:+1:
@JangoSteve any updates on merging the existing PRs?
@kuldeepaggarwal hopefully it will be next week! Test suit needs to be set up properly before merging this.
This PR fixes the issue when submitting via
remotipart
doesn't work with subdomains. The exact problem was:The solution is mentioned on MDN (Mozilla Developer Network).
Why a "Try/Catch"?
That solution actually solves the subdomain issue, but it breaks when there is no subdomain, so we need to set
document.domain=document.domain
only when the iframe doesn't have access to the parent and vice versa (equals to having a subdomain).