Hello,

Is there a way to handle OPTIONS request in pyramid? The decorator 
view_config's request_method parameter only accepts GET, PUT, POST, DELETE 
and HEAD. The reason I ask is my client code has a XHR request in another 
domain with a custom header, in which case according to the CORS policy 
<https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS#Preflighted_requests>
 
it's preflighted (which means it will make a HTTP OPTIONS request to check 
the allowed methods and exposed headers). Is there anyway I can handle 
OPTIONS requests in my pyramid backend? May be I am understanding this all 
wrong, any kind of help is appreciated. Thank you. 

Regards,
Raja

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pylons-discuss.
For more options, visit https://groups.google.com/d/optout.

Reply via email to