I have a cryptpad service deployed locally. httpUnsafeOrigin is set to drive.autox.clu, and httpSafeOrigin is set tosandbox.drive.autox.clu. Both domains point to 10.10.65.93 and everything works fine.
Now there is a need to add an additional domain name office.autox.clu to httpUnsafeOriginto also point to this service. office.autox.clu has been set to point to 10.10.65.93.I tried the following 3 methods without success.
1:In the configuration file of cryptpad/config/config.js, it seems that only one httpUnsafeOrigin can be set, and the service cannot be started when more than one is set. Is it designed in this way?
2: In /etc/nginx/conf.d/cryptpad.conf, I added a new piece of server{...} code, and replaced the set $main_domainwith office.autox.clu. After restarting nginx, the error is as follows:

Tried the following solution:
set proxy_set_header Host $hostto drive.autox.clu


return 302 http://drive.autox.clu$request_uri;

Add cname to dns analysis, and point office.autox.clu todrive.autox.clu
Unfortunately neither worked.
3: I found the error message in the cryptpad/www/common/sframe-common-outer.js source code
if (window. location. origin !== ApiConfig. httpUnsafeOrigin) {
return void window.alert(Messages._getKey('error_incorrectAccess', [ApiConfig.httpUnsafeOrigin]));
}
In order to achieve the above requirements, I want to comment this verification (although it is not safe), but I did not find the file in cryptpad/customize.dist, I still created a new customize directory in cryptpad, copied the sframe-common-outer.js file and commented out the verification, unfortunately Not yet.
Is there any way to achieve the above requirement? looking forward to hear back.