Skip to content

Revert Graphql CORS from 2.4.1 #8399

Closed
Closed
@Silarn

Description

@Silarn

Reverting Graphql CORS from 2.4.1 as it poses a security concern

I think the Admin Panel control is a business consideration, you guys like behavior, that's fine.
But my other comment on implementation is that the current implementation is wrong. (edited)

This implementation has some bugs:
We also check whether or not the domain is allowed, otherwise you'll have headers attached when you shouldn't./
Additionally some headers should be only be on OPTIONS some on the subsequent GraphQL request

These bugs can lead to security concerns so it's best to just revert and fix them in 2.4.2

#28561
#26425

Metadata

Metadata

Assignees

Labels

Component: Framework/WebapiUSE ONLY for FRAMEWORK RELATED BUG! E.g If bug related to Catalog WEB API use just CatalogIssue: Format is not validGate 1 Failed. Automatic verification of issue format is failedPriority: P0This generally occurs in cases when the entire functionality is blocked.Progress: doneProject: GraphQLimprovement

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions