|
@@ -5,7 +5,7 @@ const headerSanitize = require('../../src/server/header-blacklist')
|
|
|
describe('Header black-list testing', () => {
|
|
|
test('All headers invalid by name', () => {
|
|
|
const headers = headerSanitize({
|
|
|
- origin: 'http://www.google.com',
|
|
|
+ origin: 'http://www.transloadit.com',
|
|
|
'Accept-Charset': '...',
|
|
|
'content-Length': 1234
|
|
|
})
|
|
@@ -40,7 +40,7 @@ describe('Header black-list testing', () => {
|
|
|
'Content-Type': 'application/json',
|
|
|
'Content-Length': 1234,
|
|
|
Expires: 'Wed, 21 Oct 2015 07:28:00 GMT',
|
|
|
- Origin: 'http://www.google.com'
|
|
|
+ Origin: 'http://www.transloadit.com'
|
|
|
})
|
|
|
expect(Object.keys(headers)).toHaveLength(3)
|
|
|
expect(headers).toHaveProperty('Authorization')
|