Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

allowCrossDomainPages - problems with forms? #2234

Closed
ghost opened this Issue · 4 comments

4 participants

@ghost

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

@adrianpike

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

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