• Post Reply Bookmark Topic Watch Topic
  • New Topic

How can I accept a POST request from an external website to my spring application ?  RSS feed

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am new to Spring and there's a requirement in my project to accept a POST request from an external website to our spring application by creating a new Controller. Any suggestions on how to do that ?
 
Author and ninkuma
Marshal
Posts: 66351
155
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Via Ajax from the browser? Or from backend code?

If the former, you need to enable CORS.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!