HTML5 CORS Issue to my Hosts API / Hosted Server

finally had time to look at this.

in file:

  • Engine/Source/Runtime/Online/HTTP/Private/HTML5/HTML5HTTP.cpp

function:

  • bool FHTML5HttpRequest::StartRequest()

comment out:

// Add "Pragma: no-cache" to mimic WinInet behavior
if (GetHeader("Pragma").IsEmpty())
{
	SetHeader(TEXT("Pragma"), TEXT("no-cache"));
}

i will remove that for 4.20 – there’s no reason we should be setting that…

from your playfab thread, if you’re still seeing errors with X-UnrealEngine-Agent (but i don’t think it should error out), then also comment out:

// make a fake header, so server has some idea this is UE
SetHeader(TEXT("X-UnrealEngine-Agent"), FString::Printf(TEXT("game=%s, engine=UE4, version=%s"), FApp::GetProjectName(), *FEngineVersion::Current().ToString()));

but (again), i’d like to request you try it with this still in the code – i’m just curious if this will error or not.

looking forward to your findings!

:slight_smile: