Added in cors stuff for pyramid