Updated on 2023-04-04 GMT+08:00

What Do I Do If Error Code 500 Is Displayed for a CORS Request and Third-Party Authentication Fails

Symptom

The following error message is displayed: thridParty validate failed and the errorMessage is null

Solution

Generally, this error occurs because a security plugin is installed in the browser. Press F12 to check header information.

  1. After the browser reports the error, press F12.
  2. Refresh the page and click any line under Name (request name) on the left.
  3. On the Network page, click the Headers tab page, expand Request Headers, and check the Origin parameter. This parameter indicates the request source. The value is the protocol and domain name of the page where the requested resource is located. If this parameter exists, the CORS request is normal.
  4. If the Origin parameter does not exist, check the plugins installed in the browser.

    Figure 1 Checking the request header parameter