The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/apps/meteor/tests/end-to-end/api/assets.ts

15 lines
483 B

import { describe, it } from 'mocha';
import { request } from '../../data/api-data';
describe('assets', () => {
it('should always have CORS headers for assets', async () => {
await request.get('/assets/favicon.svg').expect('Content-Type', 'image/svg+xml').expect('Access-Control-Allow-Origin', '*').expect(200);
await request
.get('/fonts/rocketchat.woff2')
.expect('Content-Type', 'font/woff2')
.expect('Access-Control-Allow-Origin', '*')
.expect(200);
});
});