nginx cross-domain settings nginx apache nginx php nginx rewrite
Release: 2023-02-28 21:46:02
Original
1327 people have browsed it
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 of this Website
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
Latest Articles by Author
-
2024-11-11 12:24:02
-
2024-10-22 13:03:13
-
2024-10-22 11:44:46
-
2024-10-18 17:59:07
-
2024-10-18 17:52:44
-
2024-10-18 14:43:47
-
2024-10-15 12:00:09
-
2024-10-15 11:53:15
-
2024-10-17 14:29:56
-
2024-10-09 10:13:21