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 7785543
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T20:16:22+00:00 2026-06-01T20:16:22+00:00

I’m working on the WCF RESTful service using VS 2010 IDE, during the study

  • 0

I’m working on the WCF RESTful service using VS 2010 IDE, during the study we are told that the API will be deployed in the same domain where the site will host, for eg.

API Hosting: http://www.site.com/API/services.svc (where API is a virtual folder)

Site Hosting: http://www.site.com

Since, the same API will be consumed by our web sites using client side ajax we planned to deploy in the same domain, so there won’t be cross domain / origin access issues.

But, later there is a change that the same API will be consumed by the iPad, iPhone and Smart TV Apps, since there will be a huge traffic to the API we planned to deploy the API in a separate domain called http://www.api.com/services.svc its is responding well for all the device apps but, we have problem in web sites since it is a cross domain access from client side. After a search, I found codes to break this cross domain policy in the API as below, by implementing the below code in the Global.asax file Application_BeginRequest() its responding well in Chrome, Firefox & Safari browsers but not in I.E

HttpContext.Current.Response.AddHeader("Access-Control-Allow-Origin", "*");
HttpContext.Current.Response.AddHeader("Access-Control-Allow-Methods", "GET, POST, OPTIONS");
HttpContext.Current.Response.AddHeader("Access-Control-Allow-Headers", "x-requested-with");
if (HttpContext.Current.Request.HttpMethod.ToUpper() == "OPTIONS")
{
HttpContext.Current.Response.AddHeader("X-DR-Request-Terminated-By", "CrossDomainXhr-OPTIONS");
HttpContext.Current.Response.AddHeader("Access-Control-Max-Age", "1728000");
HttpContext.Current.Response.End();
}

Please help me to solve this issue…

Thanks in advance…

Sathish

  • 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-01T20:16:23+00:00Added an answer on June 1, 2026 at 8:16 pm

    As far as I know, IE doesn’t allow “*” in

    HttpContext.Current.Response.AddHeader("Access-Control-Allow-Origin", "*");  
    

    Try to specify the domain. You could also refer here:
    Access-Control-Origin in IE

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

Sidebar

Related Questions

I've been trying to do a simple restful wcf service that will return JSON.
Working on a wcf webhttp service that processes data using linq to entities and
I'm working on a RESTful web-service with the WCF Web API. Another party provided
I'm working on a WCF service that, at least initially, will only be consumed
I'm working on a WCF service that requires Membership and Profile access. I got
I'm currently working on a WCF service that reaches out to another service to
I'm working with a RESTful WCF service. One of the service methods returns byte[]
I am working on a project in which a WCF service will be consumed
I have a RESTful WCF service (.NET 3.5), which has a function that is
I am new on working with WCF service, I am using ADO.Net Entity Data

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.