cors and corsPattern will ensure that cross-domain channels work properly. corsPattern ensures that only connections with origins matching a whitelist regex pattern will be permitted. Currently, allow-credentials is set to true and any methods or headers are permitted.