Access-Control-Allow-Origin in ASP

I have a "DOM" file that calls an ASP (NOT. NET) file in another domain. How do I write Access-Control-Allow-Originin ASP? Access-Control-Allow-Originfor "PHP", but I can’t find the syntax for ASP, I can only find it for ASP.NET

It works fine when I use Internet Explorer, but it says in Chrome

"The requested resource does not have a header Access-Control-Allow-Origin. Therefore, the source" http: // SOURCEDOMAIN "is denied access."

+4
source share
1 answer

HTTP- ASP - . Response , HTTP, , .

AddHeader(), :

<%
Call Response.AddHeader("Access-Control-Allow-Origin", "http://SOURCEDOMAIN")
%>

+5

All Articles