Closed
Description
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