- Issue created by @shadysamir
When using Iframely paid service with semantic media embed. Iframely has two key combinations to use with the API call: Server Key and Client Hash. The server key is passed with api_key=
and is meant to be hidden and used only from a server environment, and the client hash is passed with key=
and can be used from a client side and be exposed in combination with origin domain checks.
Since the module uses the provider URL on both client side for the editor, and the server side for embed filter processing, there is no way to use the client hash which will fail when called from the server with 403 (origin match) , and using the server key exposes it.
Iframely provides an additional security feature where a server call can contain a custom header with a custom value to ensure the call is originating from our server.
&key=HASH
in module config provider URL.key
parameter fails.&api_key=KEY
parameter with the server api key.One of the following solutions can be implemented:
Active
2.0
Code