gpt4 book ai didi

web-services - 请求 header 中的起源邪恶.示例

转载 作者:行者123 更新时间:2023-12-03 05:26:47 26 4
gpt4 key购买 nike

我正在尝试将表单数据发送到网络服务,但在 Chrome DOM 的“网络”中的“请求 header ”下方,我得到了来源 evil.example 和引荐来源网址“localhost:8080”。

Accept:application/json, text/plain, */*
Accept-Encoding:gzip, deflate
Accept-Language:nb-NO,nb;q=0.8,no;q=0.6,nn;q=0.4,en-US;q=0.2,en;q=0.2
Connection:keep-alive
Content-Length:91
Content-Type:application/x-www-form-urlencoded; charset=UTF-8;
Host:office.insoft.net:9091
Origin:http://evil.example/
Referer:http://localhost:8080/
User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2230.0 Safari/537.36

我想更改为另一个源,“localhost:8080”将是最佳源。

我该如何解决该问题?

最佳答案

header 来源的覆盖是由 Allow-Control-Allow-Origin: * chrome 扩展引起的。

Link to the extension

尝试禁用此扩展程序以解决您的问题。

关于web-services - 请求 header 中的起源邪恶.示例,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27292441/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com