Used to check for browser translation.
用于检测浏览器翻译。
ブラウザの翻訳を検出する

Fix CORS error when connecting DID Space


Overview#

When connecting to a DID Space, you may encounter CORS errors.

image.png

The reason is that the target DID Space has disallowed cross-origin requests from this server. To resolve this issue, the DID Space administrator needs to modify the security configuration in the backend.

Prerequisites#

  • Access to the DID Spaces Dashboard requires Owner or Admin permissions.

Procedure#

Access the DID Space console:

image.png

Locate the security rule configuration and the name of the currently active response header policy.

image.png

Open the edit page for the response header policy:

image.png

Configure Origin:

image.png

As shown above, the Origin only includes one address, and it’s not the Blocklet Server address used previously. Consequently, connections from the Blocklet Server to the DID Space will be blocked by CORS. We can add the Blocklet Server’s address to the Origin, or set the Origin to * (to allow any cross-origin requests):

image.png

You can then connect to the DID Space:

image.png




你获得 0 积分