Content Security Policy (#5790)
* Adding CSP headers. * Adding Content-Security-Policy headers. * Fixing test. * CSP in ws server responses.
This commit is contained in:
committed by
Arkadiy Paronyan
parent
57626b60e7
commit
c7a043b864
@@ -41,7 +41,7 @@ export default class DappIcon extends Component {
|
||||
src={
|
||||
app.type === 'local'
|
||||
? `${dappsUrl}/${app.id}/${app.iconUrl}`
|
||||
: `${dappsUrl}${app.image}`
|
||||
: `${app.image}`
|
||||
}
|
||||
/>
|
||||
);
|
||||
|
||||
@@ -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`
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user