@shopify/react-network
Version:
A collection of components that allow you to set common HTTP headers from within your React application.
11 lines (10 loc) • 400 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var network_1 = require("@shopify/network");
var hooks_1 = require("../hooks");
function UpgradeInsecureRequests(_a) {
var _b = _a.value, value = _b === void 0 ? true : _b;
hooks_1.useCspDirective(network_1.CspDirective.UpgradeInsecureRequests, value);
return null;
}
exports.default = UpgradeInsecureRequests;