QuoteThe user is at https://www.masm32.com, but your forum's canonical domain is https://masm32.com and therefore the AJAX requests are being sent to the latter.
QuoteThe solution would be to use an .htaccess file to redirect browsers from https://www.masm32.com to https://masm32.com. Then anyone initially trying to go to the www subdomain will be automatically redirected to the main domain, and all further interactions with the server will take place on the main domain without any cross-origin requests happening.
QuoteI'm getting this error on the JS console:Access to XMLHttpRequest at 'https://masm32.com/board/index.php?action=profile;area=alerts_popup;counter=3;u=24' from origin 'https://www.masm32.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
jquery.min.js:2 GET https://masm32.com/board/index.php?action=profile;area=alerts_popup;counter=3;u=24 net::ERR_FAILED 302
send @ jquery.min.js:2
ajax @ jquery.min.js:2
E.<computed> @ jquery.min.js:2
updateAlerts @ minified_8c5c3c63fe705521109cd0609542d3cc.js?smf214_1694438488:607
setTimeout (async)
updateAlerts @ minified_8c5c3c63fe705521109cd0609542d3cc.js?smf214_1694438488:619