Security Domain Related
For web applications, first log in to the Tencent Cloud CloudBase console, select [User Management] > [Login Settings] in the left-side menu bar, and click [Settings]. Add a security domain. Only then can you properly use CloudBase's jssdk to access various CloudBase services. Otherwise, errors such as INVALID_REQUEST_SOURCE or cross-origin access restrictions will occur, such as
Security domains do not support fuzzy matching; you must enter the exact domain name. Port is optional, and protocol is not supported. For example, localhost:8000 or localhost are valid security domains, while http://localhost is not valid. By default, the system does not add security domains. All domains used must be manually added by developers, such as localhost and 127.0.0.1.