CORS: Enhance compliance with CORS specifications by ensuring that the Access-Control-Allow-Methods header is only sent on OPTIONS requests. This change improves the accuracy of CORS responses and aligns with best practices.
CORS: Refine header handling by confirming that most headers are only valid for the preflight response, ensuring a more precise implementation of CORS rules.