Skip to main content

Posts

Showing posts with the label IIS

Configuring CORS in IIS - Response to preflight request doesn't pass access control check: It does not have HTTP ok status

The Access-Control-Allow-Origin Header Explained – With a CORS Example Often times when calling an API, you may see an error in your console that looks like this: Access to fetch at 'http://somesite.com' from origin 'http://yoursite.com' has been blocked by CORS policy: The 'Access-Control-Allow-Origin' header has a value that is not equal to the supplied origin Add following in <system.webServer> <httpProtocol> <customHeaders> <add name="Access-Control-Allow-Methods" value="*" /> <add name="Access-Control-Allow-Origin" value="*" /> <add name="Access-Control-Allow-Headers" value="*" /> </customHeaders> </system.webServer> After adding the above code in web.config, received the following error in response. .... Has been blocked by CORS policy: Response to preflight request doesn’t pass access control check:...

Set Up the SAS® Application Server

Use the IntrNet Configuration Utility (also referred to as Inet Config) to define or set up the Application Server. Click on the Windows  Start  button and select  All Programs  or  Programs  ==>  The SAS System  (for Version 8) or  SAS  (for Version 9) ==>  IntrNet  ==>  Create a New IntrNet Service When you see the SAS Service Configuration Utility (shown below) choose  Create a Pool Service  and click  Next . You may also choose to  Create a Socket Service , however creating a Pool Service is suggested. Follow the prompts: Specify  appdisp  for the name of the service. When prompted to enter  Enter Admin Password , you can leave it blank for this install on your local PC. The Configuration Utility will generate default Application Broker directives you need to add to your Application Broker configuration file. The Version 9 utility will create a readme.txt file containing the ...