Skip to content

Commit

Permalink
Merge pull request #1654 from serlo/fix/editor-testing-staging-auth
Browse files Browse the repository at this point in the history
fix: skip authorization when editor testing header present
  • Loading branch information
hejtful authored Jul 4, 2024
2 parents 376e1dc + 892ffcd commit 1babf29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/server/src/internals/server/graphql-middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export async function applyGraphQLMiddleware({
model: new ModelDataSource(environment),
}
const authorizationHeader = req.headers.authorization
if (!authorizationHeader) {
if (!authorizationHeader || isSerloEditorTesting) {
return Promise.resolve({
dataSources,
service: isSerloEditorTesting
Expand Down

0 comments on commit 1babf29

Please sign in to comment.