Win a copy of Securing DevOps this week in the Security forum!
  • 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: 66488
160
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.
 
You showed up just in time for the waffles! And this tiny ad:
Thread Boost - a very different sort of advertising
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!