1. mathews rutto
  2. PowerServer
  3. Sunday, 10 October 2021 21:04 PM UTC

Hi,

Urgently need someone to help me resolve this error. The error is about CORS.

While deploying, i use the server ip and replace localhost with 192.236.194.16 (server ip)

Please help.

Chris Pollach Accepted Answer Pending Moderation
  1. Tuesday, 19 October 2021 19:34 PM UTC
  2. PowerServer
  3. # 1

Hi Mathews;

  Please open a support case for this issue.

Regards ... Chris

Comment
  1. mathews rutto
  2. Tuesday, 26 October 2021 06:55 AM UTC
Still have not yet manage to resolve
  1. Helpful
  1. mohamed elsheikh
  2. Saturday, 13 November 2021 11:04 AM UTC
I have the same problem , Any solution Please ?
  1. Helpful
  1. mathews rutto
  2. Friday, 26 November 2021 05:48 AM UTC
@ mohamed elsheikh

install ssl certificate on the server end and it will work. The application should be accessed through https://
  1. Helpful
There are no comments made yet.
Armeen Mazda @Appeon Accepted Answer Pending Moderation
  1. Saturday, 13 November 2021 15:30 PM UTC
  2. PowerServer
  3. # 2

Have you upgraded to the latest build 1311?

Comment
  1. mathews rutto
  2. Sunday, 14 November 2021 14:35 PM UTC
Yes i have, but still experience the same challenge.
  1. Helpful
There are no comments made yet.
Kai Zhao @Appeon Accepted Answer Pending Moderation
  1. Thursday, 18 November 2021 01:41 AM UTC
  2. PowerServer
  3. # 3

Hi mathews,

Does the application work well on Firefox/IE? If only Chrome/Edge have the issue, it should be caused by an Chromium security update. PowerServer application requires to access local service http://127.0.0.1, but this update does not allow remote site access the local resource via http connection, please refer to the article below for details.
https://developer.chrome.com/blog/private-network-access-update/

Please try any solutions below to work around the issue .

1. Start application via Firefox/IE.

2. Install the certificate on web server and use the https connection to access the application, for example:
https://%server%/%applicaiton%

3. Disable 'Block insecure private network requests' in Chrome/Edge.
https://stackoverflow.com/questions/66534759/chrome-cors-error-on-request-to-localhost-dev-server-from-remote-site

Regards,
Kai

Comment
  1. Kai Zhao @Appeon
  2. Monday, 22 November 2021 01:25 AM UTC
We have tried setting Access-Control-Allow-Origin on the server side, but it does not solve the issue. It is caused by the Private Network Access on Chrome, please refer to the article below for more details.

https://developer.chrome.com/blog/private-network-access-update/

  1. Helpful
  1. mathews rutto
  2. Friday, 26 November 2021 05:46 AM UTC
Have installed an ssl certificate and it has worked. The application should be accessed through https://
  1. Helpful 1
  1. Miguel Leeuwe
  2. Friday, 11 November 2022 04:05 AM UTC
For Chrome, there's also an extension you can install: "Access control Allow origin". Do a search on CORS when installing an extension.
  1. Helpful
There are no comments made yet.
Julie Jiang @Appeon Accepted Answer Pending Moderation
  1. Friday, 29 April 2022 07:56 AM UTC
  2. PowerServer
  3. # 4

Hi Matthews,

Please note that the issue will be fixed in the coming PowerBuilder 2022 beta version (early June).

Best regards, Julie

Comment
There are no comments made yet.
mathews rutto Accepted Answer Pending Moderation
  1. Friday, 29 April 2022 09:47 AM UTC
  2. PowerServer
  3. # 5

Have added app.UseCors(m => m.SetIsOriginAllowed()); but still experience the same challenge. I case i will still have to wait for Powerbuilder2022 version.

 

Comment
There are no comments made yet.
Ian Kristopher Layoso Accepted Answer Pending Moderation
  1. Friday, 11 November 2022 01:54 AM UTC
  2. PowerServer
  3. # 6

Greetings! 

We encounter this error on our end. How can we fix it?

 

Thank you.

Comment
  1. Kai Zhao @Appeon
  2. Friday, 11 November 2022 05:24 AM UTC
It is recommended that you upgrade to PowerBuilder 2022 to avoid this problem.
  1. Helpful 2
  1. mathews rutto
  2. Monday, 28 November 2022 15:30 PM UTC
I upgraded and it's worked
  1. Helpful
  1. Kai Zhao @Appeon
  2. Tuesday, 29 November 2022 00:26 AM UTC
Glad to hear that!
  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.