Solution of => Can not access Web API on other machines; #14
CuteLeon
started this conversation in
Show and tell
Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Config to allow other machines to access:
urlsconfiguration inappsettings.Production.jsonfile ofWebHostandWebAPIprojects, modify to listen ahttpport if you deployed them by aIP addresswhile not aDomain name; Such as"urls": "http://0:9001",;APIConfigurationsectionAPIHostconfiguration in\wwwroot\appsettings.Production.jsonfile ofWebproject, to make sure Frond-end application is calling your correct Back-end deploy address; Such as:"APIHost": "http://192.168.1.100:9091";WebAPIproject using free CORS policy to allow any request;Beta Was this translation helpful? Give feedback.
All reactions