当前位置:网站首页>Lane cross domain problem
Lane cross domain problem
2022-04-23 02:04:00 【N3verL4nd】
For complex requests , The browser will send a pre check request first
curl -i 'https://ds.fe.test.sankuai.com/api/groupfission/rule/activityList?page=1&size=10&title=' \
-X 'OPTIONS' \
-H 'Accept: */*' \
-H 'Accept-Language: zh-CN,zh;q=0.9' \
-H 'Access-Control-Request-Headers: access-token,client-id,swimlane' \
-H 'Access-Control-Request-Method: GET' \
-H 'Cache-Control: no-cache' \
-H 'Connection: keep-alive' \
-H 'Origin: http://127.0.0.1:8080' \
-H 'Pragma: no-cache' \
-H 'Referer: http://127.0.0.1:8080/' \
-H 'swimlane: 38941-ujzun' \
-H 'Sec-Fetch-Dest: empty' \
-H 'Sec-Fetch-Mode: cors' \
-H 'Sec-Fetch-Site: cross-site' \
-H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36' \
--compressed
SpringMVC Decision is the logic of pre inspection request :
SpringMVC Cross domain Default processing class :org.springframework.web.cors.DefaultCorsProcessor
No, cors To configure , Go straight back to .
HTTP/1.1 403 Forbidden
Server: openresty
Date: Thu, 21 Apr 2022 09:08:48 GMT
Content-Length: 20
Connection: keep-alive
M-TraceId: 5004084855451728121
Allow: GET, HEAD, POST, PUT, DELETE, TRACE, OPTIONS, PATCH
Invalid CORS request%
If the lane is configured with a white list , Trunk without , When sending a pre inspection request , Due to missing header A fixed field causes a call to the trunk . Thus, a cross domain error is reported .
Reference resources
https://www.ruanyifeng.com/blog/2016/04/cors.html
版权声明
本文为[N3verL4nd]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204220839267426.html
边栏推荐
- What is a boolean type?
- CC2541的仿真器CC Debugger使用教程
- Under the pressure of sales, domestic mobile phones began to reduce prices, but they haven't put down their final face
- 012_ Access denied for user ‘root‘@‘localhost‘ (using password: YES)
- Basic knowledge of software testing, you can meet the interviewer after reading it
- LeetCode 447. Number of boomerangs (permutation and combination problem)
- Is the availability of proxy IP equal to the efficiency of proxy IP?
- JDBC cannot connect to MySQL, and the error is access denied for user 'root' @ '* * *' (using password: Yes)
- What businesses use physical servers?
- MySQL basic record
猜你喜欢
Is the availability of proxy IP equal to the efficiency of proxy IP?
012_ Access denied for user ‘root‘@‘localhost‘ (using password: YES)
006_redis_jedis快速入门
Performance introduction of the first new version of cdr2022
Shardingsphere introduction and sub table usage
用TensorFlow实现线性回归(包括过程中出现的问题及解决方法)
【动手学深度学习V2】循环神经网络-1.序列模型
Dynamic batch processing and static batch processing of unity
Redis memory recycling strategy
Easyswool environment configuration
随机推荐
Leetcode46 Full Permutation
配置iptables实现本地端口转发的方法详解
中金财富是国企吗,开户安全吗
[Dahua cloud native] micro service chapter - service mode of five-star hotels
012_ Access denied for user ‘root‘@‘localhost‘ (using password: YES)
leetcode:27. 移除元素【count remove小操作】
On LAN
【动手学深度学习V2】循环神经网络-1.序列模型
How to choose a good dial-up server?
postman里面使用 xdebug 断点调试
今天终于会写System.out.println()了
Dynamic batch processing and static batch processing of unity
教程】如何用GCC“零汇编”白嫖MDK
什么是代理IP池,如何构建?
Realize linear regression with tensorflow (including problems and solutions in the process)
Makefile文件是什麼?
Micro build low code zero foundation introductory course
[hands on learning] network depth v2.1 Sequence model
EBS:PO_ EMPLOYEE_ HIERARCHIES_ ALL
ESP32使用freeRTOS的消息队列