Skip to content

Commit

Permalink
fix(cors): Do not override default CORS headers
Browse files Browse the repository at this point in the history
  • Loading branch information
andris9 committed Oct 31, 2023
1 parent 9a3aec3 commit e5a2f50
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions workers/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,9 +208,8 @@ const CORS_CONFIG = !CORS_ORIGINS
)
) || ['*']
),
headers: ['Authorization'],
exposedHeaders: ['Accept'],
additionalExposedHeaders: [],
additionalHeaders: ['X-EE-Timeout'],
additionalExposedHeaders: ['Accept'],
preflightStatusCode: 204,
maxAge:
getDuration(readEnvValue('EENGINE_CORS_MAX_AGE') || (config.cors && config.cors.maxAge), {
Expand Down

0 comments on commit e5a2f50

Please sign in to comment.