{"action":"created","issue":{"url":"https://api.github.com/repos/atecarlos/protractor-http-mock/issues/15","labels_url":"https://api.github.com/repos/atecarlos/protractor-http-mock/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/atecarlos/protractor-http-mock/issues/15/comments","events_url":"https://api.github.com/repos/atecarlos/protractor-http-mock/issues/15/events","html_url":"https://github.com/atecarlos/protractor-http-mock/issues/15","id":55860697,"number":15,"title":"mocks to a API on another domain","user":{"login":"colby-swandale","id":996377,"avatar_url":"https://avatars.githubusercontent.com/u/996377?v=3","gravatar_id":"","url":"https://api.github.com/users/colby-swandale","html_url":"https://github.com/colby-swandale","followers_url":"https://api.github.com/users/colby-swandale/followers","following_url":"https://api.github.com/users/colby-swandale/following{/other_user}","gists_url":"https://api.github.com/users/colby-swandale/gists{/gist_id}","starred_url":"https://api.github.com/users/colby-swandale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/colby-swandale/subscriptions","organizations_url":"https://api.github.com/users/colby-swandale/orgs","repos_url":"https://api.github.com/users/colby-swandale/repos","events_url":"https://api.github.com/users/colby-swandale/events{/privacy}","received_events_url":"https://api.github.com/users/colby-swandale/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-01-29T06:13:03Z","updated_at":"2015-08-12T13:12:16Z","closed_at":"2015-08-12T13:12:16Z","body":"Hey Guys,\r\n\r\nI have a quick question, can i mock a PUT request that is being made to an API on another domain. Something like this:\r\n```javascript\r\n    mock([{\r\n      request: {\r\n        path: 'https://<domain>/v1/auth/forgot_password',\r\n        method: 'PUT'\r\n      },\r\n      response: {\r\n        status: 200\r\n      }\r\n    }]);\r\n  });\r\n```\r\n\r\nThis does not appear to be working in my tests, could i replace path with url maybe? Thanks!"},"comment":{"url":"https://api.github.com/repos/atecarlos/protractor-http-mock/issues/comments/130295998","html_url":"https://github.com/atecarlos/protractor-http-mock/issues/15#issuecomment-130295998","issue_url":"https://api.github.com/repos/atecarlos/protractor-http-mock/issues/15","id":130295998,"user":{"login":"atecarlos","id":492581,"avatar_url":"https://avatars.githubusercontent.com/u/492581?v=3","gravatar_id":"","url":"https://api.github.com/users/atecarlos","html_url":"https://github.com/atecarlos","followers_url":"https://api.github.com/users/atecarlos/followers","following_url":"https://api.github.com/users/atecarlos/following{/other_user}","gists_url":"https://api.github.com/users/atecarlos/gists{/gist_id}","starred_url":"https://api.github.com/users/atecarlos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atecarlos/subscriptions","organizations_url":"https://api.github.com/users/atecarlos/orgs","repos_url":"https://api.github.com/users/atecarlos/repos","events_url":"https://api.github.com/users/atecarlos/events{/privacy}","received_events_url":"https://api.github.com/users/atecarlos/received_events","type":"User","site_admin":false},"created_at":"2015-08-12T13:12:16Z","updated_at":"2015-08-12T13:12:16Z","body":"No problem! @zalow517 glad to know everything is working for you."}}