mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Whitelist the alternative raw url
This commit is contained in:
@@ -8,6 +8,7 @@ const TOPIC_REGEXP = /\/t\/([^\/]+)\/(\d+)\/?(\d+)?/;
|
||||
// We can add links here that have server side responses but not client side.
|
||||
const SERVER_SIDE_ONLY = [
|
||||
/^\/posts\/\d+\/raw/,
|
||||
/^\/raw\/\d+/,
|
||||
/\.rss$/,
|
||||
/\.json/,
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user