{"action":"created","issue":{"url":"https://api.github.com/repos/Telerik-Verified-Plugins/WKWebView/issues/59","repository_url":"https://api.github.com/repos/Telerik-Verified-Plugins/WKWebView","labels_url":"https://api.github.com/repos/Telerik-Verified-Plugins/WKWebView/issues/59/labels{/name}","comments_url":"https://api.github.com/repos/Telerik-Verified-Plugins/WKWebView/issues/59/comments","events_url":"https://api.github.com/repos/Telerik-Verified-Plugins/WKWebView/issues/59/events","html_url":"https://github.com/Telerik-Verified-Plugins/WKWebView/issues/59","id":53443894,"number":59,"title":"CORS Isssue","user":{"login":"cschmidtanexinet","id":9283054,"avatar_url":"https://avatars.githubusercontent.com/u/9283054?v=3","gravatar_id":"","url":"https://api.github.com/users/cschmidtanexinet","html_url":"https://github.com/cschmidtanexinet","followers_url":"https://api.github.com/users/cschmidtanexinet/followers","following_url":"https://api.github.com/users/cschmidtanexinet/following{/other_user}","gists_url":"https://api.github.com/users/cschmidtanexinet/gists{/gist_id}","starred_url":"https://api.github.com/users/cschmidtanexinet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cschmidtanexinet/subscriptions","organizations_url":"https://api.github.com/users/cschmidtanexinet/orgs","repos_url":"https://api.github.com/users/cschmidtanexinet/repos","events_url":"https://api.github.com/users/cschmidtanexinet/events{/privacy}","received_events_url":"https://api.github.com/users/cschmidtanexinet/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-01-05T20:32:29Z","updated_at":"2016-06-01T06:10:17Z","closed_at":"2015-01-05T21:04:50Z","body":"Great plugin!!!  But having an issue with CORS.  My app loads up but all my external AJAX calls are failing.  I tried modifying your plugin to work around CORS but that did not work by using addHandlerWithMatchBlock and adding in the CORS response headers:\r\n\r\n\r\n[response setValue:@\"*\" forAdditionalHeader:@\"Access-Control-Allow-Origin\"];\r\n        [response setValue:@\"GET\" forAdditionalHeader:@\"Access-Control-Allow-Methods\"];\r\n        [response setValue:@\"PUT\" forAdditionalHeader:@\"Access-Control-Allow-Methods\"];\r\n        [response setValue:@\"POST\" forAdditionalHeader:@\"Access-Control-Allow-Methods\"];\r\n        [response setValue:@\"origin, content-type, accept\" forAdditionalHeader:@\"Access-Control-Allow-Headers\"];\r\n        \r\nBut that did not work.  Here is my issue:\r\n\r\n[Error] Failed to load resource: Origin http://localhost:12344 is not allowed by Access-Control-Allow-Origin. (GetListOfJobs, line 0)\r\n[Error] XMLHttpRequest cannot load http://{my web service}?_dc=1420489645738. Origin http://localhost:12344 is not allowed by Access-Control-Allow-Origin. (index.html, line 0)\r\n\r\nAny ideas???\r\n\r\nThanks,\r\n\r\nChris"},"comment":{"url":"https://api.github.com/repos/Telerik-Verified-Plugins/WKWebView/issues/comments/222901987","html_url":"https://github.com/Telerik-Verified-Plugins/WKWebView/issues/59#issuecomment-222901987","issue_url":"https://api.github.com/repos/Telerik-Verified-Plugins/WKWebView/issues/59","id":222901987,"user":{"login":"Yashaswini","id":2039319,"avatar_url":"https://avatars.githubusercontent.com/u/2039319?v=3","gravatar_id":"","url":"https://api.github.com/users/Yashaswini","html_url":"https://github.com/Yashaswini","followers_url":"https://api.github.com/users/Yashaswini/followers","following_url":"https://api.github.com/users/Yashaswini/following{/other_user}","gists_url":"https://api.github.com/users/Yashaswini/gists{/gist_id}","starred_url":"https://api.github.com/users/Yashaswini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yashaswini/subscriptions","organizations_url":"https://api.github.com/users/Yashaswini/orgs","repos_url":"https://api.github.com/users/Yashaswini/repos","events_url":"https://api.github.com/users/Yashaswini/events{/privacy}","received_events_url":"https://api.github.com/users/Yashaswini/received_events","type":"User","site_admin":false},"created_at":"2016-06-01T06:10:17Z","updated_at":"2016-06-01T06:10:17Z","body":"Hello there, \r\nI too am facing same issue.  I am able to build it for ios and deploy it on device. I see this error in console while I debug it : \r\n\r\n error Failed to load resource: Origin http://localhost:12344 is not allowed by Access-Control-Allow-Origin. (email, line 0) [Error] XMLHttpRequest cannot load ..... \r\n\r\nWhat am I doing wrong here?  Any possible solutions? \r\nThanks in Advance "}}
{"actor":{"display_login":"Yashaswini"}}