Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

allowCrossDomainPages - problems with forms? #2234

Closed
krausejj opened this Issue · 4 comments

5 participants

Justin derghostface Zero3 Adrian Pike John Bender
Justin

I'm building a jquerymobile/phonegap iOS app. All links are working beautifully now that i've set

$.mobile.allowCrossDomainPages = true;

however, forms no longer work. I am using primarily POST requests. when i use the full URL path http://mydomain.com/submit.php, the site reloads (is not completed via ajax - no transitions, CSS, etc). when i use only the submit.php path, I get the error:

"The requested URL was not found on this server."

My links work well via ajax when i use both absolute and relative paths (assuming the first link clicked uses absolute, which I'm assuming updates the base href.

Is this a bug or am I missing something?

Much thanks,
Justin

John Bender johnbender was assigned
derghostface

I am experiencing the same problem. Cross domain form submitting does not work any more (it worked with alpha 4).

Zero3

@derghostface Are you sure that this worked with a4? I can reproduce on both a4 and b2 (not sure about rc1, #2440 blocks me from trying)

Adrian Pike

Also fought this same problem - I've got a fix in place, pull request in a minute.

Adrian Pike adrianpike referenced this issue from a commit in adrianpike/jquery-mobile
Adrian Pike adrianpike Fixed #2234 - form hijacking wasn't respecting allowCrossDomainPages,…
… now it does!
88754ac
John Bender

@krausejj

There's a simple check here for external url's that doesn't check against the cross domain pages setting, though it should.

John Bender johnbender referenced this issue from a commit in johnbender/jquery-mobile
Adrian Pike adrianpike Fixed #2234 - form hijacking wasn't respecting allowCrossDomainPages,…
… now it does!
78350c3
Jasper de Groot jaspermdegroot referenced this issue from a commit
Commit has since been removed from the repository and is no longer available.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.