Domain not working!?

domain not working. tried to use and, but none of them is working . already changed the CNAME “www” to my glitch’s project url. when I try to access I get “502 Bad Gateway”

it seems that is working,but is not working,and due to this conflict the website can’t request css and js files

have you got both set up as custom domains on the glitch side?