In order to have several domains allowed for the Access-Control-Allow-Origin we need to: * Allow the AccessControlAllowOrigin syspref to take several values * On the controllers code, we should check Origin on each request against the defined values and return the right value on the header.