Error on registration form while using an alias for the url of my server

Dear all,
I’ve used an alias to replace the url with the name of my server “tucana”, by “indicotest”.
With the new url i have some erros with the registration form:

Access to XMLHttpRequest at 'https://tucana.synchrotron-soleil.fr/dist/mod_assets////modules/events/registration/client/js/form/tpls/registrationform.tpl.html’ from origin ‘https://indicotest.synchrotron-soleil.fr’ has been blocked by CORS policy: Response to preflight request doesn’t pass access control check: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.
angular.js:6349 Error: Failed to load template: https://tucana.synchrotron-soleil.fr/dist/mod_assets/
///modules/events/registration/client/js/form/tpls/registrationform.tpl.html
at angular.js:5105
at angular.js:10050
at wrappedErrback (angular.js:7518)
at wrappedErrback (angular.js:7518)
at angular.js:7630
at Object.$eval (angular.js:8926)
at Object.$digest (angular.js:8789)
at Object.$apply (angular.js:9012)
at done (angular.js:10265)
at completeRequest (angular.js:10449)

GET https://tucana.synchrotron-soleil.fr/dist/mod_assets///_/modules/events/registration/client/js/form/tpls/registrationform.tpl.html net::ERR_FAILED

any ideas?

You cannot use more than one URL for Indico - use one canonical URL and redirect any alternative URLs to that one.

Anyway, if it’s a local test instance, fix the BASE_URL in indico.conf:

1 Like