there is no web.config for angular can you provide me with sample to add into the angular website
This is my config file: angular appsettings.production.json { "ConnectionStrings": { "Default": "Server=SOFFA-DEV2; Database=SoffaV2; User=nwehbe; Password=123;" }, "App": { "ServerRootAddress": "http://localhost:8080/", "ClientRootAddress": "http://localhost:80/", "CorsOrigins": "http://localhost" } } and the host web.config:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.webServer>
<handlers>
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" />
</handlers>
<aspNetCore processPath="dotnet" arguments=".\Soffa.Web.Host.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" forwardWindowsAuthToken="false" startupTimeLimit="3600" requestTimeout="23:00:00">
<environmentVariables />
</aspNetCore>
<httpProtocol>
<customHeaders>
<remove name="X-Powered-By" />
</customHeaders>
</httpProtocol>
</system.webServer>
</configuration>
I Already installed url-rewrite and I know on F5 it will return 404 but I am trying to open related page from the host dashboard even any page I cannot open it from the main website to another tab.
How to configure IIS to redirect all requests to the index.html page (or, to the root path) ????
Yes, and still not working
yes using team viewer you mean?
yes I try it even not working
Still waiting for any help to fix the issue related to CORS policy plus I add the CORs extension to chrome but still I am facing this issue.
hostDashboard:1 Access to XMLHttpRequest at 'http://localhost:8080/signalr/negotiate?enc_auth_token=wNYmO41%2F48SHNstaLVXxHCCre29BZQl1NhC6NM3R3rzpXtPQxVzH6jEzA%2FQhXFN5tu6Fk7pO53uppm1mVXMZgxbyRVz26dnepi%2FFyB6axBY%2B6gq1GL%2BuRQgoiFUCjRN2p8w6LevViwKlHyWZZJZO1DGVSjAi1m2U%2Bog9pkHw9%2FQR4Nl%2FDPnoP9JYDMpZ1zxx09u6s0GZ9%2FQ5Sjk%2BL0UfcSCbl38X8he5w9UIn%2FHvxh7ysM1CiPLsoOwtbiieSRVmrmt0JjnipAn4%2FK283F8GrGwzwgehWsqefmUnM0ckMwP9ZAdwQxWDhxv0IqNw4tDhwUYs%2F1SYdYozdNzgByhgNOBPzQDObNLlWc4vV5VMOibjSs1wzigC%2FQiAGPNUi%2FHGWxQBq9fDgoc03lqlvF0Cve8uJogCrQtGvhG16DIo02RmZyrqYPxLF7pb8CXd6ZP%2B92LIZHGsbGwUcAI7IzrWDL5O4udPgscUCWv%2Fo%2BT%2BIWLmlVK7sXoOqdD9PK7zZ32s6aTptX3jF9l39llSbwRpbS1%2FyBDrjDwKGU5W27rUWXiA3Qev%2FAGXE%2FRwOjBcDp%2BExyJKYhSLeDCWQ7qhkYeBcD%2F7dqeXesk98QRyO4oC9Rw3lWLFuJXy0YW7O%2FGswPaROF35MAu2VGdYVY2atCGg%2FLZkqa4FZIBHHYmaq2Yv5pZONV4Rjvi3CaP5YdFuCPy%2FStsguFO0oAcvmBeK7OARDn5%2BfSN8XW9KmG2TjCAGPYl0hcNZlm%2BE8fhgV5W%2Fb5H%2BMTpoAsa5ZNeKEiDKGtznBW9grHzKK7%2BEQBF4FnF%2BNJ%2FMbYOjiMoam0NntA9wCdcaRDPYadclKIlLPJpb9zk9uGgNueomoXK%2FQxVFB5fw1BXatsmqNX%2B6z403ClbP0KcqnFxm1d69ttaUngXD9jg4fiCEUmOxD6NPU5qsSLCDmaoNt1O%2FXpkuWMDEv7%2F8LcXJ2%2FOg5BgneTNTmbi3n0Po0%2B8usCqb5tiV1KoBSn46414%3D' from origin 'http://localhost' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'. The credentials mode of requests initiated by the XMLHttpRequest is controlled by the withCredentials attribute.
I tried ,http://localhost:80 and still not working
Hi,
I am trying to publish the angular project on IIS but i am facing problem with CORS policy.
ERROR: Access to XMLHttpRequest at 'http://localhost:8080/AbpUserConfiguration/GetAll?d=1563787668709' from origin 'http://localhost' has been blocked by CORS policy: Request header field abp.tenantid is not allowed by Access-Control-Allow-Headers in preflight response.
and my appsettings.Production.json is : "App": { "ServerRootAddress": "http://192.168.20.100:8080/", "ClientRootAddress": "http://192.168.20.100:80/", "CorsOrigins": "http://192.168.20.100:80" }
and I put in the web.config :
<cors enabled="true"> <add origin="*" /></cors>
Any idea?