Skip to content

allowCrossDomainPages - problems with forms? #2234

Closed
ghost opened this Issue Aug 7, 2011 · 4 comments

4 participants

@ghost
ghost commented Aug 7, 2011

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

@johnbender johnbender was assigned Aug 10, 2011
@derghostface

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

@Zero3
Zero3 commented Oct 8, 2011

@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)

@adrianpike

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

@adrianpike adrianpike added a commit to adrianpike/jquery-mobile that referenced this issue Nov 16, 2011
@adrianpike adrianpike Fixed #2234 - form hijacking wasn't respecting allowCrossDomainPages,…
… now it does!
88754ac
@johnbender

@krausejj

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

@johnbender johnbender added a commit to johnbender/jquery-mobile that referenced this issue Jun 12, 2012
@adrianpike adrianpike Fixed #2234 - form hijacking wasn't respecting allowCrossDomainPages,…
… now it does!
78350c3
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.