nginx cross-domain settings nginx apache nginx php nginx rewrite
Release: 2023-02-28 21:46:02
Original
1350 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. (m.sbmmt.com)!
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-29 16:23:53
-
2024-11-26 12:09:36
-
2024-11-26 12:09:32
-
2024-11-21 16:12:31
-
2024-11-20 14:23:08
-
2024-11-19 10:43:00
-
2024-11-13 09:42:17
-
2024-11-13 09:42:16
-
2024-11-11 12:24:02
-
2024-10-22 13:03:13