Closed ArkDouglas closed 1 year ago
Thanks so much for this @ArkDouglas !
I linted the PR to follow the bundled Coding Standards (in the future, you can run composer fix-cs
to autofix, and composer check-cs
to see if there's anything remaining), and hope to have time to review this ASAP.
If you want to take a stab at adding some tests in the interim, you can take a look at wpunit/RequestTest.php
(mocks the request to ensure the request behaves per the settings) and functional/AuthenticatedQueryCest.php (tests a real request at a broader level).
PS: Both this and #72 are eligible for my WPGraphQL Spring Cleaning campaign, where I'm donating development hours to the WPGraphQL plugin/feature of your choice. If you're interested, please fill out the form at the above link, and let me know where you'd like me to direct the time.
⚠️ I tweaked the logic a bit so ACAC
only gets added if the origin is not a wildcard
What
This will enable the check box on the admin side to add "Access-Control-Allow-Credentials" to the outgoing requests.
Why
This facilitates a missing need, given the other plugins that would perform this are incompatible. Closes #72
How
Add the necessary functionality in the proper settings files.
Testing Instructions
Additional Info
Checklist: