From dc22b50b567470d307be01755a54aa1f4e255ec9 Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Tue, 2 Aug 2016 14:18:58 -0400 Subject: [PATCH] Add missing requires_cors to build log archive URL Fixes #1671 --- endpoints/api/build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/endpoints/api/build.py b/endpoints/api/build.py index e43c253d5..95e9f4607 100644 --- a/endpoints/api/build.py +++ b/endpoints/api/build.py @@ -377,7 +377,7 @@ class RepositoryBuildLogs(RepositoryParamResource): # If the logs have been archived, just return a URL of the completed archive if build.logs_archived: return { - 'logs_url': log_archive.get_file_url(build.uuid) + 'logs_url': log_archive.get_file_url(build.uuid, requires_cors=True) } start = int(request.args.get('start', 0))