ruffle-rs / ruffle

A Flash Player emulator written in Rust
https://ruffle.rs
Other
14.95k stars 769 forks source link

Towns 1 avatar.swf referrer issue found #15824

Open TylerMcIntyre opened 3 months ago

TylerMcIntyre commented 3 months ago

Describe the bug

So in Towns 1 there is an avatar.swf issue where the request referrer is in the wrong location. In waterfox it is pulling up because it shows: https://graphics.gaiaonline.com/images/towns/003/towns.swf?003. However, in ruffle version instead of that referrer, it pulls www.gaiaonline.com as a request in the said header in avatar.swf. I hope this is indeed the issue and should fix the bug.

Expected behavior

referrer

Content Location

http://www.gaiaonline.com/launch/towns/

Also for the http://a2.cdn.gaiaonline.com/gaia/members/ava/2b/1e full.swf link, it needs to be referred to http://graphics.gaiaonline.com/images/towns/003/towns.swf?003 in ruffle.

Affected platform

Desktop app

Operating system

Windows 11

Browser

Google Chrome

Additional information

Waterfox Classic is the browser I was using to cross-reference.

evilpie commented 3 months ago

This might just be expected behavior on the modern web. graphics.gaiaonline.com and www.gaiaonline.com are not same-origin domains. https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referrer-Policy#strict-origin-when-cross-origin

TylerMcIntyre commented 3 months ago

This might just be expected behavior on the modern web. graphics.gaiaonline.com and www.gaiaonline.com are not same-origin domains. https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referrer-Policy#strict-origin-when-cross-origin

Oh, ok. Thought I would've been on to something there. There are no errors at all in the ruffle log. Do you have any idea what might be causing this issue?