1. Penta consulting
  2. PowerServer
  3. Thursday, 20 October 2022 04:28 AM UTC

https://github.com/Appeon/PowerServer-Console-HTML-Example

You have accessed the site and downloaded the source of the PowerServer Administrator page

As shown in the image below, I downloaded and installed node.js version 14.16 and ran npm installation and npm rundev from the source top-level directory (C:\PowerServerConsole).


After modifying the port to 9090 on the index.js page, run npm run dev again to access localhost:9090 and run the administrator page.

At the Setting > ApiServer URL,
You entered http://localhost:5099

 



If you run http://localhost:5099 as shown in the image below, the connection appears to be successful.



But won't license information and session information come out like the image below? It didn't even come out on the demo site

 

David Xiong @Appeon Accepted Answer Pending Moderation
  1. Friday, 21 October 2022 07:50 AM UTC
  2. PowerServer
  3. # 1

Hi Penta,

 

This may be caused by a cross-domain issue with the browser. By default, browsers will not allow cross-origin resource sharing (CORS).

Please refer to "How to allow Server Management Console to access your own PowerServer API Server" in the link below to set it up and see if it can solve your problem.

https://github.com/Appeon/PowerServer-Console-HTML-Example

 

Regards

David

Comment
  1. Penta consulting
  2. Tuesday, 25 October 2022 00:43 AM UTC
The image has not been attached to the comment

I wrote the reply above in reply. Could you please check.
  1. Helpful
There are no comments made yet.
Penta consulting Accepted Answer Pending Moderation
  1. Monday, 24 October 2022 08:56 AM UTC
  2. PowerServer
  3. # 2

I modified the Startup.cs file as below according to the setting you told me.

 

The domain is set to penta.test.com as a virtual host as shown below.

 

I modified API server url as below.

 

 

The index.js file from the source of the C:\PowerServerConsole\config administrator page has also been modified to penta.test.com as follows.

 

 

I accessed penta.test.com:9090, but the license information is not available.

Is there any part that needs to be set up?

 

 

Comment
  1. David Xiong @Appeon
  2. Wednesday, 26 October 2022 06:00 AM UTC
In the Startup.cs file, you need to move the statement app.UseCors(“limitRequest”) to between app.UseRouting() and app.UseAuthorization().
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.