🐛 Enable CORS on asset plugins
This commit is contained in:
1 parent
a22f93193c
commit
ea28a4d902
1 file changed
+4
@@ -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):
|
||||
|
||||
Reference in new issue
Block a user