I recently ran into with posting Javascript requests to another domain. By default XHR posting to other domains is not allowed. Following the instructions from http://enable-cors.org/, I enabled this on the other domain. <?xml version="1...
I have a script CustomAction (Yes, I know all about the opinions that say don't use script CustomActions. I have a different opinion.) I'd like to run a command, and capture the output. I can do this using the WScript.Shell COM object, the...
On IIS6, I can use WMI to list available websites, like this: var iis = GetObject("winmgmts://localhost/root/MicrosoftIISv2"); var query = "SELECT * FROM IIsWebServerSetting" // get the list of virtual servers var...
Whenever I use the following code, the webserver (running IIS 7) refuses to send me content, but sends a "400 Bad Request" instead. request.setRequestHeader("If-Modified-Since", "Sat, 1 Jan 2000 00:00:00 GMT");...
I have encountered a problem that I cant resolve. I have some js (jquery) POST soap (over PHP) request code working on Apache with Cors enabled for calling HTTPS, and it worked fine. I've migrated to IIS7, set response headers: Access-Control-...
I'm stuck on why a node.js app that was moved to an IIS7 server is now failing. I know IIS7 doesn't support web sockets but my understanding was that socket.io would fall back to long polling if web socket isn't available. So now when the...
<script type="text/javascript" language="javascript"> function setCookie() { var path = '/', host = document.location.hostname; document.cookie = 'random=' + Math.floor(Math.random()*11) + '; path=...
I downloaded and setup MS's Stock Trader app. I'm running Vista Ultimate, IIS7, VS 2008 / .NET 3.5. The entire app is about 120 MB so is quite involved but it all seemed to setup fine from the msi. When I run the app and try to login I get a...
I am developing an Asp.net mvc application, everything works fine in ASP.net development server but when I am trying to host it on IIS 7. I am getting problem related to URL resolution. I have used relative paths in Javascript to give the image. The...
i'm trying to allow another host (a local host, like javascript.dev) to make a xhr to this host, it is an IIS7 and if i curl -I it, this is the headers: HTTP/1.1 200 OK Content-Length: 0 Content-Type: text/html; charset=UTF-8 Server: Microsoft-I...
©2020 All rights reserved.