0 votes
1 view
in Salesforce by (11.9k points)

I have a page with a form that posts to salesforce.com's webto Lead service. I am trying to make an ajax version of this using jQuery.

Though the form in the page posts fine and I receive the data in my salesforce, Once I make an identical post structure to this form and then post with jQuery I get a 405.

Any help with this would be greatly appreciated.

Is there a difference between a posted form and a jquery post as far as what the receiving website can see?

1 Answer

0 votes
by (31.6k points)
reshown by

I believe that you are facing cross-domain issues. So, to solve this problem, you need to use ajax to post a script on your domain. This will then use a cURL to make a post to the external domain. 

Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...