UNPKG

@shopify/react-network

Version:

A collection of components that allow you to set common HTTP headers from within your React application

12 lines (9 loc) 282 B
import { CspDirective } from '@shopify/network'; import { useCspDirective } from '../hooks.mjs'; function UpgradeInsecureRequests({ value = true }) { useCspDirective(CspDirective.UpgradeInsecureRequests, value); return null; } export { UpgradeInsecureRequests as default };