{"action":"opened","issue":{"url":"https://api.github.com/repos/YMFE/yapi/issues/210","repository_url":"https://api.github.com/repos/YMFE/yapi","labels_url":"https://api.github.com/repos/YMFE/yapi/issues/210/labels{/name}","comments_url":"https://api.github.com/repos/YMFE/yapi/issues/210/comments","events_url":"https://api.github.com/repos/YMFE/yapi/issues/210/events","html_url":"https://github.com/YMFE/yapi/issues/210","id":309654235,"number":210,"title":"Pre-response Script  设置无效","user":{"login":"jinhui-su","id":5946769,"avatar_url":"https://avatars2.githubusercontent.com/u/5946769?v=4","gravatar_id":"","url":"https://api.github.com/users/jinhui-su","html_url":"https://github.com/jinhui-su","followers_url":"https://api.github.com/users/jinhui-su/followers","following_url":"https://api.github.com/users/jinhui-su/following{/other_user}","gists_url":"https://api.github.com/users/jinhui-su/gists{/gist_id}","starred_url":"https://api.github.com/users/jinhui-su/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jinhui-su/subscriptions","organizations_url":"https://api.github.com/users/jinhui-su/orgs","repos_url":"https://api.github.com/users/jinhui-su/repos","events_url":"https://api.github.com/users/jinhui-su/events{/privacy}","received_events_url":"https://api.github.com/users/jinhui-su/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-29T07:54:08Z","updated_at":"2018-03-29T07:54:08Z","closed_at":null,"author_association":"NONE","body":"## 版本号\r\n~ 1.3.8\r\n\r\n## 什么问题\r\n~ 自动生成的mock接口访问跨域，想通过改响应header解决，但是设置里面 Pre-response Script(响应数据处理脚本) 配置无效，例如：context.responseHeader.aa = \"43\"; 在响应头里面就没有此数据\r\n\r\n\r\n## 如何复现此问题\r\n~ 设置里面 配置 响应预处理脚本（context.responseHeader.aa = \"43\";或者其他任何header）看响应头里面是否生效，\r\n\r\n## 什么浏览器\r\n~ chrome\r\n\r\n## 什么系统（linux, window, macox）\r\n~ macox\r\n\r\n## 备注\r\n~ 脚本参考的此链接 https://segmentfault.com/a/1190000012599503，如有误请指正，谢谢"}}
{"actor":{"display_login":"jinhui-su"}}