splashlab / magento-2-cors-requests

Enabling cross-origin resource sharing (CORS) requests to Magento 2 API from configured Origin domain
Open Software License 3.0
69 stars 30 forks source link

[Feature] Enabling GraphQL CORS #22

Closed matasnizamovas closed 2 years ago

matasnizamovas commented 2 years ago

Is it in the plans to enable this CORS configuration to work with GraphQL endpoints in addition to Rest?

damienwebdev commented 2 years ago

@matasnizamovas see https://github.com/splashlab/magento-2-cors-requests/issues/21

thaddeusmt commented 2 years ago

As @damienwebdev points out, I am not working with Magento currently and have little bandwidth to maintain or enhance this extension, so there is no plan to add GraphQL support at the moment.

His Magento 2 CORS extension might be more useful, it appears to support GraphQL: graycoreio/magento2-cors

Feel free to submit a pull request adding support for GraphQL endpoints, though, if you have forked this and built it yourself, I can merge it in. Thank you.