我正在一个网页上做一个GET请求,但是它不工作,因为“No‘Access-Control-Allow-Origin header is it on the request resource”,我认为这意味着我需要这个头我如何在我的jquery中设置我的站点上的这个头。我的代码如下: <!html> <meta charset="utf-8">
<script src="https:
我必须为每个ajax请求设置自定义的头,是否有一种方法只完成一次,而不必在每个ajax代理中手动配置它。'xyz' // this token that every proxy should contain to communicate with our remote server. }jQuery.ajaxPrefil