当前位置:网站首页>Request header field XXXX is not allowed by access control allow headers in preflight response
Request header field XXXX is not allowed by access control allow headers in preflight response
2022-06-29 18:14:00 【Hu Anmin】
Error message
This is because the target service does not allow adding... To the request header x-run-as This
terms of settlement
The first one is , The front-end request will send the request header x-run-as Take this out
The second kind , In the backend cross domain configuration Access-Control-Allow-Headers Add this to the request header key
// add x-run-as, Out of commission * Otherwise, it will be treated as an ordinary string
response.setHeader("Access-Control-Allow-Headers", "Content-Type,Access-Token,x-run-as");


边栏推荐
- Issue 42: is it necessary for MySQL to have multiple column partitions
- lodash深拷贝使用
- Adobe Premiere基础-素材嵌套(制作抖音结尾头像动画)(九)
- Spingmvc requests and responses
- 国外LEAD赚钱,做个网站真的很简单
- 让 Google 搜索到自己的博客
- Top 30 open source software
- 国内酒店交易DDD应用与实践——理论篇
- /usr/bin/ld: warning: **libmysqlclient.so.20**, needed by //usr/
- 给定一个数在序列中求最大异或值(01字典)
猜你喜欢

Adobe Premiere Foundation - réglage du son (correction du volume, réduction du bruit, tonalité téléphonique, changement de hauteur, égaliseur de paramètres) (XVIII)

Adobe Premiere基础-不透明度(混合模式)(十二)

Two controller layer interface authentication methods

【目标跟踪】|stark配置 win otb

markdown知识轻轻来袭

jdbc认识上手

Adobe Premiere基础-时间重映射(十)

Issue 42: is it necessary for MySQL to have multiple column partitions

Error building SqlSession问题

Adobe Premiere基础-常用的视频特效(裁剪,黑白,剪辑速度,镜像,镜头光晕)(十五)
随机推荐
Image feature computation and representation -- content based image retrieval
Proxmox VE Install 7.2
Longest XOR path (dfs+01trie)
Shell tutorial circular statements for, while, until usage
MATLAB 最远点采样(FPS)
POJ 1975 (transitive closure)
3H proficient in opencv (VII) - color detection
Test dble split function execution + import time-consuming shell script reference
Web Scraping with Beautiful Soup for Data Scientist
How to use idea?
[tcapulusdb knowledge base] tcapulusdb doc acceptance - transaction execution introduction
Visio annotation, annotation location
软件测试——基础理论知识你都不一定看得懂
Prevent form resubmission based on annotations and interceptors
Request header field xxxx is not allowed by Access-Control-Allow-Headers in preflight response问题
Configure the local domain name through the hosts file
NVIDIA installs the latest graphics card driver
Does rapid software delivery really need to be at the cost of security?
记录服务器被入侵病毒:ssh密码被更改登录失败、恶意程序跑满了cpu、jar包启动失败自动kill、一直弹出You have new mail in /var/spool/mail/root
给定一个数在序列中求最大异或值(01字典)