请求标头中的来源 evil.com [英] Origin evil.com in Request Header

查看:19
本文介绍了请求标头中的来源 evil.com的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将表单数据发送到网络服务,但在 Chrome DOM 的网络"中的请求标头"下方,我得到了来源evil.com"和引用者localhost:8080".

I am trying to send form data to a webservice but below "Request Header" in the "Network" of the Chrome DOM I got the origin "evil.com" and referer "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.com/
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"将是最佳来源.

I want to change to another origin and "localhost:8080" would be the best origin.

我该如何解决这个问题?

How do I resolve that problem?

推荐答案

header origin 被覆盖是由 Allow-Control-Allow-Origin: * chrome 扩展引起的.

The overwrite of the header origin is caused by Allow-Control-Allow-Origin: * chrome extension.

链接到扩展程序

尝试禁用此扩展以解决您的问题.

Try disabling this extension in order to solve your problem.

这篇关于请求标头中的来源 evil.com的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆