19 lines
388 B
JavaScript
19 lines
388 B
JavaScript
import { useEffect } from 'react';
|
|
|
|
/**
|
|
* Token pages must not send the address to the next site.
|
|
*/
|
|
export default function TokenReferrer() {
|
|
useEffect(() => {
|
|
const meta = document.createElement('meta');
|
|
meta.name = 'referrer';
|
|
meta.content = 'no-referrer';
|
|
document.head.appendChild(meta);
|
|
return () => {
|
|
meta.remove();
|
|
};
|
|
}, []);
|
|
|
|
return null;
|
|
}
|