CF not forwarding CORS headers

It is when i try to connect on port 8443, it get this error in Chrome:

Failed to load https://example.com:8443/?query=true: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘https://example.com’ is therefore not allowed access. The response had HTTP status code 521.