Content Security Policy (#5790)

* Adding CSP headers.

* Adding Content-Security-Policy headers.

* Fixing test.

* CSP in ws server responses.
This commit is contained in:
Tomasz Drwięga
2017-06-28 09:12:02 +02:00
committed by Arkadiy Paronyan
parent 57626b60e7
commit c7a043b864
5 changed files with 52 additions and 7 deletions

View File

@@ -41,7 +41,7 @@ export default class DappIcon extends Component {
src={
app.type === 'local'
? `${dappsUrl}/${app.id}/${app.iconUrl}`
: `${dappsUrl}${app.image}`
: `${app.image}`
}
/>
);

View File

@@ -64,7 +64,7 @@ describe('ui/DappIcon', () => {
it('renders other apps with correct URL', () => {
expect(render({ app: { id: 'test', image: '/test.img' } }).props().src).to.equal(
`${DAPPS_URL}/test.img`
`/test.img`
);
});
});