当前位置:网站首页>Cross domain problems when downloading webapi interface files
Cross domain problems when downloading webapi interface files
2022-07-29 07:41:00 【wtnu200】
Use Microsoft.AspNet.WebApi.Core It can solve the cross domain problem of common interfaces , But if the interface function is to download files , Like mine Webapi Added Downloads pdf Interface , No matter how the client calls , There will be prompts across domains , At present, the solution is to add
response.AddHeader("Access-Control-Allow-Origin", "*");
You can solve the problem
边栏推荐
猜你喜欢

MySQL 45讲 | 08 事务到底是隔离的还是不隔离的?

【WPF】通过动态/静态资源实现语言切换

Sort out the two NFT pricing paradigms and four solutions on the market

多线程购物

Meizhi optoelectronics' IPO was terminated: annual revenue of 926million he Xiangjian was the actual controller

Segger's hardware anomaly analysis

207.课程表

NFT 的 10 种实际用途

Go 事,如何成为一个Gopher ,并在7天找到 Go 语言相关工作,第1篇

2022 Shenzhen Cup Title A: get rid of "scream effect" and "echo room effect" and get out of the "information cocoon room"
随机推荐
2022年深圳杯A题破除“尖叫效应”与“回声室效应”走出“信息茧房”
树莓派的启动流程
How to get to the deep-water area when the industrial Internet goes?
cs61abc分享会(六)程序的输入输出详解 - 标准输入输出,文件,设备,EOF,命令行参数
状态机dp三维
QT专题:基础部件(按钮类,布局类,输出类,输入类,容器类)
技术分享| 快对讲综合调度系统
Getting started with JDBC
OA项目之会议通知(查询&是否参会&反馈详情)
jdbc入门
【暑期每日一题】洛谷 P6461 [COCI2006-2007#5] TRIK
基于高阶无六环的LDPC最小和译码matlab仿真
Prometheus and grafana
Logback log level introduction
MySQL 45 | 08 is the transaction isolated or not?
Sqlmap (SQL injection automation tool)
Amazon cloud assistant applet is coming!
[summer daily question] Luogu p6320 [coci2006-2007 4] sibice
Credit card shopping points
2-unified return class dto object