Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8957795
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T15:04:20+00:00 2026-06-15T15:04:20+00:00

We are running a WCF service hosted in Windows Azure and try perform POST

  • 0

We are running a WCF service hosted in Windows Azure and try perform POST requests from a website hosted elsewhere but this has proven to be really tricky. Apparently it seems to be REALLY difficult to allow the OPTIONS preflight request before the actual POST request in iis7 side.

Even though we have in our web.config <system.webserver> the definitions

  <httpProtocol>
      <customHeaders>
        <add name="Access-Control-Allow-Origin" value="*" />
        <add name="Access-Control-Allow-Headers" value="Origin,X-Requested-With,Content-Type,Accept" />
        <add name="Access-Control-Allow-Methods" value="POST,GET,OPTIONS"/>
      </customHeaders>
    </httpProtocol>

and for the security

<security>
  <requestFiltering>
    <verbs>
      <add verb="OPTIONS" allowed="true" />
    </verbs>
  </requestFiltering>
</security>

we keep getting HTTP 405 Method not Allowed response.

I’ve tried multiple tricks from different posts here in stackoverflow but I’m starting to be desperate as nothing seems to work… Site works in Chrome as it seems not to care about the preflight response but IE hangs on HTTP 405 response.

Does anyone know is possible in anyway to allow preflight OPTIONS request through web.config (and how) or do we need to start implementing our own handlers for the preflight request (and if so an example would be great 🙂 )?

thanks,
Matti

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T15:04:21+00:00Added an answer on June 15, 2026 at 3:04 pm

    Check out this thread. I think WebDAV is installed on the Web Roles (cannot confirm it though). You have to RDP to the web role instance and check if this is the situation. If it is, you will need to create startup task to remove the WebDAV.

    You can also check this and that articles on how to configure verbs in IIS via appcmd or vbscript (both can be executed via a startup task)

    It appears that these things must be configured at Application Host config level, not allowed at web.config level.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a windows service running.Inside this service I have hosted some service (WCF).
I'm running a WCF service hosted by a windows service (calling from a asp.net
I have a self-hosted WCF service running as a windows service using the WebAPI
I have a WCF service hosted under IIS 6.0 running under Windows 2003 R2.
I have a WCF service hosted on Windows Azure as a cloud service. When
I have a WCF service running locally hosted by a windows service on machine
I have a IIS-Hosted WCF service running on one server and a windows service
I have a wcf self-hosted service running as windows service, serving multiple win/web clients
I have a wcf application hosted in a windows service running a local windows
I am running a WCF service from inside a exe (for debugging, it will

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.