Closed jhintringer closed 1 year ago
How can I stop executing the request if CORS do not match? The client will nevertheless receive no content, but the code may already do some changes or need performance for that call.
You should be able to do something like this:
request.env['x-rack-cors'].hit?
How can I stop executing the request if CORS do not match? The client will nevertheless receive no content, but the code may already do some changes or need performance for that call.