Any ideas?
I want to open a specific url " http://185.187.94.224:9999" to prevent blocking from cors policy how can I set it in
appsettings.Production.json { "ConnectionStrings": { "Default": "Server=VM-SOFFA\SQLEXPRESS; Database=SoffaV2; User=nwe; Password=nwesoffa@123;" }, "App": { "ServerRootAddress": "http://localhost:8080/", "ClientRootAddress": "http://localhost:80/", "CorsOrigins": "http://localhost, http://185.187.94.224:9999" } } because its only working for localhost but I want the second url
thank you done
Sorry here is my web.config file of angular:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<tracing>
<traceFailedRequests>
<add path="*">
<traceAreas>
<add provider="WWW Server" areas="Authentication,Security,Filter,StaticFile,CGI,Compression,Cache,RequestNotifications,Module,FastCGI,WebSocket" verbosity="Verbose" />
</traceAreas>
<failureDefinitions statusCodes="404.2" />
</add>
</traceFailedRequests>
</tracing>
</system.webServer>
</configuration>
thanks
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