🌐 CORS configuration generator
Visually configure Cross-Origin Resource Sharing (CORS) policies
🎯 Allowed Origins (Origins)
⚠️ Not recommended for use in production environments, there may be security risks
📋 Allowed HTTP methods (Methods)
📨 Allowed request headers (Headers)
📤 Exposed response headers (Expose Headers)
⚙️ Other options
Allow cross-domain requests to carry credential information such as cookies
Access-Control-Max-Age: How long the browser caches the results of the preflight request
⚠️ Security Warning:
📄 Generated configuration
💡 CORS working principle
- Simple request : GET/POST/HEAD and only use simple headers, send directly
- Preflight request : Complex requests will first send OPTIONS requests for pre-checking
- Voucher mode : When carrying Cookie, Origin cannot be *
- Safety Advice : Production environments should clearly specify allowed sources and avoid using *