Skip to content

Commit 3028299

Browse files
committed
core: Add compatibility rule to rewrite fpdownload.adobe.com
This domain hosts SWZ files and does not work on web due to CORS. This fixes content that requires those SWZ files and the website owner does not provide them. As a bonus we don't have to worry about reliability of fpdownload.adobe.com and the fact that some day it will stop working.
1 parent 7367e71 commit 3028299

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

core/src/compatibility_rules.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,18 @@ impl CompatibilityRules {
8585
"chat.kongregate.com",
8686
)],
8787
},
88+
// Replaces fpdownload.adobe.com with Ruffle's CDN. fpdownload.adobe.com hosts SWZ files
89+
// which do not work on web due to CORS (and the reliability of fpdownload.adobe.com is
90+
// questionable).
91+
RuleSet {
92+
name: "fpdownload".to_string(),
93+
domain_rewrite_rules: vec![UrlRewriteRule::new(
94+
UrlRewriteStage::BeforeRequest,
95+
vec![FetchReason::UrlLoader],
96+
"fpdownload.adobe.com",
97+
"cdn.ruffle.rs",
98+
)],
99+
},
88100
],
89101
}
90102
}

0 commit comments

Comments
 (0)