Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
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 (32.1k 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. 

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...