Home  >  Article  >  Backend Development  >  nginx cross-domain settings nginx apache nginx php nginx rewrite

nginx cross-domain settings nginx apache nginx php nginx rewrite

PHP中文网
PHP中文网Original
2017-04-01 16:50:321345browse
  • 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)!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn