reactjs - 重定向到反应js中的外部url时如何在标头中发送令牌?
问题描述
在一个页面中,我需要在单击我的 url 重定向到外部链接后将标头中的令牌发送到此链接,我使用 window.location 编写重定向,但我不知道如何在标头中发送令牌
handleModalContinue = (e) => {
e.preventDefault();
window.location.href = "http://something.com"
};
解决方案
推荐阅读
- visual-studio-code - VSCode 中的 FTP-Simple - 我可以在上传时保存本地副本吗?
- ios - 在 UITextField 和软件键盘 ios 之间提供最小填充
- python - 是否有任何功能可以在 Python 中将垂直阴影区域添加到折线图中?
- c - 我应该在哪里存储 .clang 格式的文件?
- python - 在作为列表的 pandas 的索引列中查找值
- json - 如何将 JSON 对象(这是一个列表)解析为 scala 中的简单 Scala 类对象?
- cardano - 节点看不到资金
- php - 如何从ajax内部的数据库中获取循环数据并按列显示在选择按钮中
- context-free-grammar - 如何为语法创建转换图
- laravel - 错误:flutter/lib/ui/ui_dart_state.cc(177) 未处理的异常:NoSuchMethodError:在 null 上调用了 getter 'length'