Skip to content

Commit

Permalink
Feature iframe permissions (#154)
Browse files Browse the repository at this point in the history
  • Loading branch information
wazelin authored Jul 19, 2023
1 parent 859b2b2 commit 6ad6104
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 3 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
CHANGELOG
=========

2.8.0
-----

* Added support for `autoplay`, `camera`, `display-capture`, `fullscreen`, `microphone` in iframe ResourceLink
* Fixed Deep Linking URL validation

2.7.0
-----

* Added support for configurable LTI message TTL via `JWT_TTL` environment variable

2.6.0
-----

Expand Down
2 changes: 1 addition & 1 deletion config/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ parameters:
application_env: '%env(resolve:APP_ENV)%'
application_api_key: '%env(resolve:APP_API_KEY)%'
application_vendors: '%kernel.project_dir%/vendor/composer/installed.php'
application_version: '2.7.0'
application_version: '2.8.0'
container.dumper.inline_factories: true
cache.redis.namespace: '%env(default:cache.redis.namespace.default:REDIS_CACHE_NAMESPACE)%'
cache.redis.namespace.default: 'devkit'
Expand Down
2 changes: 1 addition & 1 deletion templates/launch/blocks/deepLinkingItem.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
{% endif %}
<dt>Description</dt>
<dd>{{ resource.text }}</dd>
{% if resource.icon is defined %}
{% if resource.icon is defined and resource.icon.url is defined %}
<dt>Icon</dt>
<dd><img height="20px" width="20px" src="{{ resource.icon.url }}"/></dd>
{% endif %}
Expand Down
5 changes: 4 additions & 1 deletion templates/platform/message/ltiResourceLinkLaunch.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,10 @@
$('#launch-in-iframe').click(function () {
$(this).closest('.card').find('.card-body').replaceWith(
$('<div>').addClass('card-body embed-responsive embed-responsive-16by9').append(
$('<iframe>').addClass('embed-responsive-item').attr('src', $(this).data('url'))
$('<iframe>').addClass('embed-responsive-item').attr({
src: $(this).data('url'),
allow: 'autoplay *;camera *;display-capture *;fullscreen* ;microphone *'
})
)
);
});
Expand Down

0 comments on commit 6ad6104

Please sign in to comment.