HTML5 CORS / Access-Control-Allow-Headers

My game loads at startup to my loading screen, the first code ran consists of the “Load Stream Level” node. I believe it is sitting at this stage for about a minute than gives me this error:

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://datarouter.ol.epicgames.com/datarouter/api/v1/public/data?SessionID=%7B002F9BAD-0D02-0E09-001F-0083001D10A6%7D&AppID=UEGame.UnrealEngine.Release%7C88C2C5D14FBA1A2BDF78FCA2F818623A%7CThird%20Person%20BP%20Game%20Template&AppVersion=4.19.0-0%2B%2B%2BUE4%2BRelease-4.19&UserID=ANON-%7B002datarouter/api/v1/public/data?SessionID=%7B002F9BAD-0D02-0E09-001F-0083001D10A6%7D&AppID=UEGame.UnrealE. (Reason: missing token ‘content-type’ in CORS header ‘Access-Control-Allow-Headers’ from CORS preflight channel).

ERROR: Cross-Origin Resource Sharing [CORS] check FAILED

While my game is multiplayer, at this point there are no multiplayer or other online requests going out. I have found a few posts that say they resolved it but its a bit unclear to me what to exactly put in to the .htaccess file or the gamename.html file at the top before HTML text.

Any help would be greatly appreciated!

According to Nick.Shin’s post here this is populating from this request below and I believe can be ignored. So my loading issue may be something separate (digging in to it now).

Failed to load https://datarouter.ol.epicgames.com/datarouter/api/v1/public/data?SessionID=%7B002BEFFB-0402-1009-001A-0342001210DD%7D&AppID=UEGame.UnrealEngine.Release%7C88C2C5D14FBA1A2BDF78FCA2F818623A%7CThird%20Person%20BP%20Game%20Template&AppVersion=4.18.3-0%2B%2B%2BUE4%2BRelease-4.18&UserID=ANON-%7B002datarouter/api/v1/public/data?SessionID=%7B002BEFFB-0402-1009-001A-0342001210DD%7D&AppID=UEGame.UnrealE: Request header field Pragma is not allowed by Access-Control-Allow-Headers in preflight response.

Yeap this CORS issue was unrelated to my problem. While I still don’t know how to resolve the CORS problem, it seems to be a non-factor at this time!

Edit: It also just dawned on me the CORS issue is related to the request to “datarouter.ol.epicgames.com” and it is the web dev team at “datarouter.ol.epicgames.com” that needs to enable CORS.

I “think” thats what is happening atleast.

the datarouter.ol.epicgames.com is a metrics gathering “ping” – you can safely ignore the errors. we will (one day) get that working without any errors…