HugoRodriguesQW / rsa-bridge

Encrypted communication bridge using RSA keys between frontend and backend
https://rsa-bridge.vercel.app
MIT License
1 stars 0 forks source link

RSA Bridge Fetch with GET Method not working with Fetch #5

Open HugoRodriguesQW opened 4 months ago

HugoRodriguesQW commented 4 months ago
 parseRequestOptions(options) {
        if (!this.serverNode)
            throw new Error("serverNode.key not found");
        if (!options)
            return options;
        const parsedOptions = { ...options };
        parsedOptions.headers = {
            ...options.headers,
            "x-client-key": this.publicKey("public", "base64"),
        };
        if (options === null || options === void 0 ? void 0 : options.body) {
            try {
                parsedOptions.body = this.encryptWithKey(this.......

In RSAClient, the GET method cannot obtain data, as it does not add the x-client-key to the headers.