🐛 Enable CORS on asset plugins

This commit is contained in:
Gina Häußge committed 2023-05-04 17:34:58 +02:00
1 parent a22f93193c
commit ea28a4d902
1 file changed
+4
+4
View File
@@ -2040,6 +2040,10 @@ class Server:
url_prefix = f"/plugin/{name}"
blueprint = Blueprint(name, name, static_folder=plugin.get_asset_folder())
blueprint.before_request(corsRequestHandler)
blueprint.after_request(corsResponseHandler)
return blueprint, url_prefix
def _add_plugin_request_handlers_to_blueprints(self, *blueprints):