Thank you for providing detailed information.
My main goal is to be able to restrict?Access-Control-Allow-Origin
?for?/wp-json
?and keep the other headers as is.
I believe plugin is well-equipped to achieve this goal effectively.
?I actually don’t know if PATCH is in use or not, I’m not that familiar with the WordPress REST API.
Typically, the majority of requests involve GET and POST methods, with OPTIONS commonly employed for pre-flight requests. But as I promised you before,
?If any 5 user, like yourself, opens or adds a thread to enable the PATCH method, I will include that in the next update.
Because,
There are five extended versions of this plugin available outside the official repository, each tailored to meet specific client requirements. The versions outside the repository cater to more advanced needs. However, This plugin is designed as a basic solution, primarily targeting non-tech-savvy users seeking a straightforward CORS resolution.
Considering your technical expertise, I believe you have the capability to address any security concerns that may arise, a proficiency that might surpass the typical user of this plugin. Many users of the basic version may not possess the same technical know-how.
If you have any specific security considerations or if there’s anything you’d like assistance with, please feel free to share. Your insights are valuable in enhancing the overall user experience.
Space is optional according to the spec, but improves readability.
It’s important to note that the options’ reader is the server, and in this context, I don’t foresee any noticeable performance improvement with the inclusion of spaces.
The plugin actually uses spaces in?Access-Control-Allow-Headers
I will remove space in next update.