I have a C# ASP.NET/MVC Web Role that is hosted on Azure. I want it to service one or more Azure hosted web sites as an API provider available via AJAX calls. Normally making AJAX requests from two different web locations violates the browser cross site security restrictions. But I'm wondering if there is a procedure or a set of steps I can take to configure my Webs Sites and Web Role that would avoid violating the browser security restrictions? The Web Sites and Web Role are all under my control and all running under the same Azure account, so perhaps there are things I can do to mitigate this restriction?
Make AJAX requests between an ASP.NET Azure hosted Web Site and Web Role?
547 Views Asked by Robert Oschler At
1
There are 1 best solutions below
Related Questions in ASP.NET
- Create an IIS web request activity light
- Writing/Overwriting to specific XML file from ASP.NET code behind
- What is the point of definnig Asp.net Intrinsic Objects In different places and what is the different betwen them?
- Deleting Orphans with Fluent NHibernate
- IOrderedEnumerable to vb.net IOrderedEnumerable Conversion
- Entity Framework Code First with Fluent API Concurrency `DbUpdateConcurrencyException` Not Raising
- Getting deeply embedded XML element values
- What is best way to check if any of the property of object is null or empty?
- NuGet - Given a type name or a DLL, how can I find the NuGet package?
- ASP-MVC Code-first migrations checkbox not active
- How do i add onclient click to my jquery button
- Jquery: Change contents of <select> tag dynamically
- Retrieving data from Oracle database
- ASP.NET: Fill Textbox field upon dropdownlist selection by user
- Why web API return 404 when deploy to IIS
Related Questions in AJAX
- Ajax jQuery firing multiple time display event for the same result
- Implement Onfailure in webApi controller
- AJAX PHP - Reload div after submit
- ajax load data from mysql
- Ajax-update only a component attribute, not the whole component nor its children
- using ajax to get a php database result and then show the result in a button
- How to prevent browser from executing some JavaScript when person clicks Back button?
- ajax async: true statement execution order
- Rails 4.2 jQuery loads only after refresh
- WebForms GET Json requests (JsonRequestBehavior.AllowGet)
- Rails - Ajax do not work properly on production server
- Angular js Button click
- Make jQuery/AJAX perform instantly on page load
- jQuery Ajax Uncaught TypeError: Cannot use 'in' operator to search
- Show success or error messages in Ajax response to Wordpress custom registration form
Related Questions in AZURE
- Why does Azure Auto-Scale scale go lower then minimum amount of instances?
- Data execution plan ended with error on DB restore
- Why does Azure CloudConfigurationManager.GetSetting return null
- Do I need other roles than Worker Role for a web site and service layer in Azure?
- Azure Web App PATH Variable Modification
- Azure Data Factory: LinkedService for AzureSql in failed state
- How To Update a Web Application In Azure and Keep The App Up the whole time
- Using Azure MobileServices library with my own LAN WebApi
- ionCube loader error on Azure IIS
- App crash (if closed) after click on notification
- How to get sql data bases instances in azure using java api
- I want to create file in azure share using python PUT requests but getting error signature not correct including headers
- Enabling OPTIONS method on Azure Cloud Service (to enable CORS)
- Redirecting subdomain to directory on Azure
- Kaltura account settings error
Related Questions in WEBROLE
- Azure webrole won't start, getting 500 Error, cannot read configuration file: applicationHost.config
- Howto enable WindowsAzure remote desktop with Eclipse
- Hosting azure web role with virtual application sends entire project and doesn't process configuration transforms
- TCP Worker Role to Web Role Communication
- Azure : Java webrole
- Generate Web.Debug.config which could be debugged
- How to force open webrole on port 80 in azure dev fabric(azure sdk 1.5)
- How to enable powershell on azure web role?
- Make AJAX requests between an ASP.NET Azure hosted Web Site and Web Role?
- How do I enable cs-host IIS logging in Azure?
- How to deploy an Orchard CMS web project to a Windows Azure Cloud Service?
- Azure: security between web roles
- How do I remote in to a Windows Azure web role over 443 when behind a corporate firewall?
- After upgrade from Azure 2.0 to 2.2, CloudConfigurationManager.GetSettings("...") always returns empty
- Change document root on azure php webrole
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Windows Azure is a magic wand for solving all the problems of Web Programming. The fact that you own all the resources, does not change the security model for WEB and its restrictions.
Fortunately we live in 21st century and technology changes with hours, not days nor years.
What can take a look at, are the following articles:
What you can do, is enable CORS support on your WebRole. You can read more on CORS here, here and here.