Skip to content

Commit

Permalink
fix: 🐛 allow swagger ui to download binary file
Browse files Browse the repository at this point in the history
  • Loading branch information
touv committed Oct 20, 2023
1 parent caddceb commit 080c150
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/core/src/server/knownPipeline.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ const knownPipeline = (ezs) => (request, response, next) => {
response.setHeader('Access-Control-Allow-Origin', '*');
response.setHeader('Access-Control-Allow-Methods', 'POST, OPTIONS');
response.setHeader('Access-Control-Allow-Headers', '*');
response.setHeader('Access-Control-Expose-Headers', '*');
response.setHeader('Content-Encoding', contentEncoding);
response.setHeader('Content-Disposition', contentDisposition);
response.setHeader('Content-Type', contentType);
Expand Down

0 comments on commit 080c150

Please sign in to comment.