cyu / rack-cors

Rack Middleware for handling Cross-Origin Resource Sharing (CORS), which makes cross-origin AJAX possible.
MIT License
3.26k stars 263 forks source link

Question: Possible to set CORS headers for multiple uris in a single request? #227

Open joegaudet opened 2 years ago

joegaudet commented 2 years ago

Just a quick question, I'm not sure that this is even possible by the spec, but figured this would be as good of a place to ask as any.

Given:

/foos/1
/foos/2

Is there any possible setting where a request to /foos/1 could set the CORS policy for /foos/1

Essentially /foos/*