Proxy Device Relaying Smart Device Data via CORS
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing communication methods face challenges in securely accessing and proxying content from resource-constrained nodes while adhering to the same origin security policy, particularly in scenarios involving smart devices and browsers.
Innovation Solution
The method involves establishing a connection between a browser, a proxy device, and a smart device using cross-origin resource sharing (CORS) and CoAP protocols, allowing the proxy device to securely relay content from smart devices without violating the same origin policy, enabling smart devices to remain in energy-saving modes for extended periods.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Ease of operation
If direct connection is established between browser and smart device, then data accessibility is improved, but same origin security policy is violated
Solution Approach 1:
A proxy device is introduced as an intermediary component between the browser and the smart device. The proxy device receives requests from the browser, forwards them to the smart device, and relays responses back. This mediator approach allows data access while maintaining security boundaries, as the browser never directly communicates with the smart device and thus never violates the same origin policy.
2Loss of information
If smart device remains active to provide data, then data availability is improved, but energy consumption increases
Solution Approach 1:
The smart device is configured to enter sleep mode or low-power state when not actively being accessed. The proxy device maintains connection readiness and can wake up or activate the smart device only when data is actually needed. This preliminary configuration allows the device to conserve energy during idle periods while ensuring data availability when required.
Data Source
AI summary
In accordance with an example embodiment of the present invention, there is provided an apparatus, comprising at least one processor configured to execute a computer executable program stored in a memory comprised in the apparatus, wherein the computer executable program thereby causes the apparatus to at least open a first connection to a data source device, open a second connection to a proxy device, the second connection employing a first protocol and a cross origin resource sharing context, and receive from the proxy device information of the data source device.


