json - 如何在反应应用程序上指定 http 响应标头?
问题描述
我的 react 应用程序的公共文件夹中有diagnostics.json,当我访问http://localhost:3000/diagnostics.json
它时,它完美地显示了我的 json,但我想自定义/编辑 http 响应标头,我该怎么做?
解决方案
推荐阅读
- dependency-injection - 为什么我的作用域依赖项在单个作用域中实例化了两次?
- python - 如何在没有设置模式的情况下将熊猫融化用于几列
- sql - Oracle如何根据条件返回行?
- mysql - MYSQL UPDATE 使用表达式查询
- c++ - Nodejs c ++插件:无法访问数组元素
- django - 无法从 django 中的选定类别中获取项目
- nfc - 是否可以将 Javacard 代码转换为 NFC?
- python - 如何设置manim渲染的图片/视频的大小?
- asp.net-core - HttpClient ReadAsByteArrayAsync 与 ReadAsStreamAsync
- php - PHP 8.1 中从不返回的类型