azure-web-sites

Cross-Origin Request Blocked: Azure App Service Issue

时间秒杀一切 提交于 2019-12-24 20:22:48
问题 Any Ajax / JQuery call to APP Service(http://xxxx.azurewebsites.net) throw bellow error Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://api-xxx.azurewebsites.net/api/demo/1234567. (Reason: CORS header ‘Access-Control-Allow-Origin’ does not match ‘(null)’). Point to be Noted: 1. CORS set to * in Azure Portal 2. REST API also CORS Enabled. config.EnableCors(); CORS setting in controller level [EnableCors(origins: "*", headers: "*", methods: "

IPv6 support for Azure

匆匆过客 提交于 2019-12-24 17:15:51
问题 My hosting provider supports IPv6 for quite some time now. I am looking in to the possibility to migrate to Azure, but would like to know if IPv6 is supported on Azure. Is there any documentation available? 回答1: To quote the Azure faq: Microsoft has played a leading role in helping customers to smoothly transition from IPv4 to IPv6 for the past several years. To date, Microsoft has built IPv6 support into many of its products and solutions like Windows 8 and Windows Server 2012 R2. Microsoft

Can an Azure web site/app determine its instance's CPU/memory usage?

僤鯓⒐⒋嵵緔 提交于 2019-12-24 15:44:00
问题 I have a need for my instances to log their cpu/mem usage (% of total preferably), but everything I've tried in an Azure web site doesn't work. It breaks startup and results in 502 errors. I've tried ManagementObjectSearcher and PerformanceCounter so far. These work find locally but not when deployed to Azure. Is this functionality just disabled? Would a WebJob have better luck maybe? The only alternative I can think of if there's no way to do this on the web site instance itself is make a

Active Directory B2C and OpenIdConnectAuthenticationMiddleware - Multitenant systems

流过昼夜 提交于 2019-12-24 15:40:19
问题 I have set up two tenants, 123.onmicrosoft.com and abc.onmicrosoft.com . I have developed a web application using OpenIdConnectAuthenticationMiddleware to do the OpenID Connect authentication flow. The out-of-the-box middleware requires the client ID to be passed during the configuration of the OWIN middleware, this is our challenge. Our web application is deployed once using two bindings: 123.mydomain.com and abc.mydomain.com . We want to set the client ID at runtime. Our current approach

Getting a valid bearer token for an app from a an angular AD client

自古美人都是妖i 提交于 2019-12-24 15:05:12
问题 I have followed this guide: https://github.com/Azure-Samples/active-directory-angularjs-singlepageapp and I connect successfully. I would like to send the bearer token to my C# server and use it to call my workbench(another AD app) functions. I am trying to use the bearer token I get from angular in a postman call and it is unauthorized. It is important to mention that I gave my angular client on AD permission to access my workbench instance and it's still not working, that leads me to some

Azure Websites to use a VM running SQL Server?

只谈情不闲聊 提交于 2019-12-24 14:34:21
问题 I want to add some of my websites to Azure, however they rely upon SQL Server's full text search which currently isn't supported in SQL Azure. Is there any way to create a VM in Azure, install SQL Server and then change the website connection string to use that SQL Server instance? I would obviously want to do this securely, and with the least possible network latency. I want to use the Azure websites functionality and have those websites access a SQL Server instance running inside an Azure

Azure web app slow server response time

瘦欲@ 提交于 2019-12-24 13:26:00
问题 I have Basic (Small) tier Azure Web App hosted in West Europe with a Basic SQL Database in the same region. Always On is turned on. Note that my website's target audience is in Europe. Note that the website is CodeIgniter based and runs on php 5.6 . The page loads really slowly, even though on local environment everything is fast. After running PageSpeed Insights on my site I get the following assessment: Reduce server response time In our test, your server responded in 1.7 seconds. There are

Azure Web App of nodejs application loads blank screen after deployment

半世苍凉 提交于 2019-12-24 13:18:15
问题 I'm trying to learn to use the azure web app services to deploy a MEAN stack application. I connected Web App deployments to a git repo and clicked deploy, which it appears to have done successfully. When I load the webapp url in a browser, its a blank white screen. How do I troubleshoot this scenario? 回答1: You should check if the correct ports are opened. Good luck! 回答2: There are various steps for debugging Node.js web apps on Azure Web Apps here: https://azure.microsoft.com/en-us

Set header from URL Rewrite on Azure Websites - AppCmd or applicationhost.config?

徘徊边缘 提交于 2019-12-24 11:37:48
问题 I'd like to set a request header (HTTP_HOST to be precise) from Web.config, using the IIS URL Rewrite module, on Azure Websites. Basically I'd like to have something like this in my site's Web.config: <system.webServer> <rules> <clear /> <rule name="My rule" enabled="true"> <match url=".*" /> <serverVariables> <set name="HTTP_HOST" value="my value" /> </serverVariables> <action type="None" /> </rule> This results in an error that HTTP_HOST is not allowed to be set. This is normal and with

Custom 404 on Azure Websites

拟墨画扇 提交于 2019-12-24 10:39:41
问题 I've hosted a Azure Website via GitHub and want to make a custom 404 page. My VisualStudio2013 is connected to Azure. How can access to the web.config? If i want to take the way via FTP - how can i access it with my VS2013? Is it possible to set up the custom 404 via the Azure portal? Currently i get the standardpage: Error 404 - Web Site not found! The website you have attempted to reach is not available in this Microsoft Azure Web Sites region. This could be due to one of several reasons: