Home > Article > Backend Development > nginx cross-domain settings nginx apache nginx php nginx rewrite
When I was working on a project, I adopted a structural design with front-end and back-end separation. The rest-style httpinterface designed in the backend needed to satisfy both the backend service calls and the front-end direct ajax calls, so I came across this. Cross-domain issues, the backend uses the spring mvc structure, and the HTTP method supports get, post, put, delete, option and other methods. Because when the post is called, the front-end http will first use the option to the server, and 204 occurs. After submitting the request data, in addition to making adjustments at the nginx level, spring web. spring Web. (www.php.cn)!