I have a "DOM" file that calls an ASP file (NOT .NET) on another domain.
How do I write the Access-Control-Allow-Origin in ASP?
Access-Control-Allow-Origin is for "PHP" but I cant find the syntax for ASP, I can only find it for ASP.NET
It works fine when I use Internet Explorer but in Chrome it says
"No
Access-Control-Allow-Originheader is present on the requested resource. Origin 'http://SOURCEDOMAIN' is therefore not allowed access."
Response.AddHeader "Access-Control-Allow-Origin", "http://SOURCEDOMAIN".<head>tag is not the same thing. HTTP headers are added by the server when the page is requested, the example I give below is code that should be added to the Classic ASP that you are trying to access in the background, this will enable CORS and stop Chrome blocking the content.