mirror of
https://github.com/bulwarkmail/webmail.git
synced 2026-10-31 00:12:39 +00:00
test: expect the plugin sandbox assets among the CORS-enabled static paths
This commit is contained in:
@@ -35,6 +35,8 @@ describe('Next static asset CORS', () => {
|
||||
rule.headers.some((header) => header.key.toLowerCase() === 'access-control-allow-origin')
|
||||
);
|
||||
|
||||
expect(corsRules?.map((rule) => rule.source)).toEqual(['/_next/static/:path*']);
|
||||
// The plugin sandbox's prebuilt, content-hashed script and stylesheet
|
||||
// (scripts/build-plugin-sandbox.mjs) are public static files too.
|
||||
expect(corsRules?.map((rule) => rule.source)).toEqual(['/_next/static/:path*', '/plugin-sandbox-assets/:path*']);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user