Add missing requires_cors to build log archive URL

Fixes #1671
This commit is contained in:
Joseph Schorr 2016-08-02 14:18:58 -04:00
parent c3a401d960
commit dc22b50b56

View file

@ -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))