首页 > 解决方案 > 重定向到反应js中的外部url时如何在标头中发送令牌?

问题描述

在一个页面中,我需要在单击我的 url 重定向到外部链接后将标头中的令牌发送到此链接,我使用 window.location 编写重定向,但我不知道如何在标头中发送令牌

  handleModalContinue = (e) => {
        e.preventDefault();
            window.location.href = "http://something.com"

    };

标签: reactjsredirecthttp-headerstoken

解决方案


推荐阅读