skip to Main Content

Asp.net – Insert an element in web.config based on key value in appsettings

We have a requirement to apply a transform based upon an app setting value in web.config for our ASP.NET MVC project. <!--web.config--> <?xml version="1.0" encoding="utf-8"?> <configuration> <appSettings> <add key="environment:define" value="dev"/> </appSettings> <system.webServer> <httpProtocol> <customHeaders> <add name="Access-Control-Allow-Origin" value="https://abcd.com" /> </customHeaders> </httpProtocol>…

VIEW QUESTION

Azure giving error with long URL with Token – Reactjs

I have hosted a front end app using React and React Router Dom to Azure. I have a reset password link with token as below https://abc.azurewebsites.net/reset/CfDJ8AkOTLe70aJDl6Jq93G40f4OoMX35xv1bg73%2fU9WyIDfJae9LcF8iFFF6oiO7atp8l9O%2fr1lBq%2bMPZd2aPkELXWPB7YQ5lYoAkh3t2QdB5a%2fB%2bRvJordH34lEbPRBV%2by842E5z%2b1ZNSBstZljGOPZ6tOQNjLGH%2byAAUURGK2Z8rSFjQa22t0RXaVTzP59yCEagf42DGK9UM1PLqtSun655EVkoRH8Jg2LtgK2YZYv6zD This work fine with localhost. However in Azure it gives this error "The resource…

VIEW QUESTION
Back To Top
Search