.net core Application is run with different port with electron.net with cross platrom


.net core Application is run with different port with electron.net with cross platrom
I've developed an application using .NET Core
and Electron.NET
and created one login form.
.NET Core
Electron.NET
For login, I have created separate web API
project and call the login API on login button click.
web API
When I call API from an application, Its give an error about "Cross-Origin", so I need to register an IP Address
and Port
in that API but right now I am facing an issue like .net core
application is run on the different-different port each time.
IP Address
Port
.net core
While call sign-in in API from the window environment it gives me below port:8001
While calling the same API from the Ubuntu it gives me port 35941.
So now I am facing an issue like, we have the different project for web API and it allows us to call web API on the specific port but due to each time different port generated by the electron.net, we can not call the web API in CORS(cross-origin) and it throws an error.
So anyone please help me for how to opt-out with this situation.
Looking for an answer drawing from credible and/or official sources.
Hi All, I knew that this is a new technology for everyone and no one faced this issue before. Nut if anyone amongst you can help me then, please....
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.