Adjust paths to handle CORS changes (#2816)
* Adjust :8080 paths for CORS & development * No need to redirect, Node takes care of it
This commit is contained in:
@@ -16,6 +16,8 @@
|
||||
|
||||
import React from 'react';
|
||||
|
||||
import { parityNode } from '../../../environment';
|
||||
|
||||
const styles = {
|
||||
padding: '.5em',
|
||||
border: '1px solid #777'
|
||||
@@ -23,7 +25,7 @@ const styles = {
|
||||
|
||||
export default (address) => (
|
||||
<img
|
||||
src={ `http://127.0.0.1:8080/${address}/` }
|
||||
src={ `${parityNode}/${address}/` }
|
||||
alt={ address }
|
||||
style={ styles }
|
||||
/>
|
||||
|
||||
@@ -30,6 +30,7 @@ import styles from './token.css';
|
||||
import { metaDataKeys } from '../../constants';
|
||||
|
||||
import { api } from '../../parity';
|
||||
import { parityNode } from '../../../../environment';
|
||||
|
||||
export default class Token extends Component {
|
||||
static propTypes = {
|
||||
@@ -267,7 +268,7 @@ export default class Token extends Component {
|
||||
</span> meta-data:
|
||||
</p>
|
||||
<div className={ styles['meta-image'] }>
|
||||
<img src={ `http://127.0.0.1:8080/api/content/${imageHash}/` } />
|
||||
<img src={ `${parityNode}/api/content/${imageHash}/` } />
|
||||
</div>
|
||||
</div>);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user