This week's book giveaway is in the Java 9 forum.
We're giving away four copies of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications and have Sander Mak & Paul Bakker on-line!
See this thread for details.
Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 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

 
Aashima Sharma
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 ?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66257
151
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!