{"action":"created","issue":{"url":"https://api.github.com/repos/mevdschee/php-crud-api/issues/147","repository_url":"https://api.github.com/repos/mevdschee/php-crud-api","labels_url":"https://api.github.com/repos/mevdschee/php-crud-api/issues/147/labels{/name}","comments_url":"https://api.github.com/repos/mevdschee/php-crud-api/issues/147/comments","events_url":"https://api.github.com/repos/mevdschee/php-crud-api/issues/147/events","html_url":"https://github.com/mevdschee/php-crud-api/issues/147","id":194244065,"number":147,"title":"CORS Error from HTTPS Using POST","user":{"login":"greenfm","id":4175401,"avatar_url":"https://avatars.githubusercontent.com/u/4175401?v=3","gravatar_id":"","url":"https://api.github.com/users/greenfm","html_url":"https://github.com/greenfm","followers_url":"https://api.github.com/users/greenfm/followers","following_url":"https://api.github.com/users/greenfm/following{/other_user}","gists_url":"https://api.github.com/users/greenfm/gists{/gist_id}","starred_url":"https://api.github.com/users/greenfm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/greenfm/subscriptions","organizations_url":"https://api.github.com/users/greenfm/orgs","repos_url":"https://api.github.com/users/greenfm/repos","events_url":"https://api.github.com/users/greenfm/events{/privacy}","received_events_url":"https://api.github.com/users/greenfm/received_events","type":"User","site_admin":false},"labels":[{"id":175489583,"url":"https://api.github.com/repos/mevdschee/php-crud-api/labels/help%20wanted","name":"help wanted","color":"159818","default":true}],"state":"closed","locked":false,"assignee":{"login":"mevdschee","id":1288217,"avatar_url":"https://avatars.githubusercontent.com/u/1288217?v=3","gravatar_id":"","url":"https://api.github.com/users/mevdschee","html_url":"https://github.com/mevdschee","followers_url":"https://api.github.com/users/mevdschee/followers","following_url":"https://api.github.com/users/mevdschee/following{/other_user}","gists_url":"https://api.github.com/users/mevdschee/gists{/gist_id}","starred_url":"https://api.github.com/users/mevdschee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mevdschee/subscriptions","organizations_url":"https://api.github.com/users/mevdschee/orgs","repos_url":"https://api.github.com/users/mevdschee/repos","events_url":"https://api.github.com/users/mevdschee/events{/privacy}","received_events_url":"https://api.github.com/users/mevdschee/received_events","type":"User","site_admin":false},"assignees":[{"login":"mevdschee","id":1288217,"avatar_url":"https://avatars.githubusercontent.com/u/1288217?v=3","gravatar_id":"","url":"https://api.github.com/users/mevdschee","html_url":"https://github.com/mevdschee","followers_url":"https://api.github.com/users/mevdschee/followers","following_url":"https://api.github.com/users/mevdschee/following{/other_user}","gists_url":"https://api.github.com/users/mevdschee/gists{/gist_id}","starred_url":"https://api.github.com/users/mevdschee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mevdschee/subscriptions","organizations_url":"https://api.github.com/users/mevdschee/orgs","repos_url":"https://api.github.com/users/mevdschee/repos","events_url":"https://api.github.com/users/mevdschee/events{/privacy}","received_events_url":"https://api.github.com/users/mevdschee/received_events","type":"User","site_admin":false}],"milestone":null,"comments":5,"created_at":"2016-12-08T04:24:38Z","updated_at":"2016-12-13T18:38:32Z","closed_at":"2016-12-09T11:54:54Z","body":"Hi, so I love this and am trying to expand my knowledge, but I have no PHP knowledge.\r\n\r\nI've left the default settings, and I'm getting the CORS error:\r\n\r\nXMLHttpRequest cannot load https://example.com/api.php/get_directions. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://www.example2.com' is therefore not allowed access.\r\n\r\nWhere do I specific allow_origin *?\r\n\r\nThank you!"},"comment":{"url":"https://api.github.com/repos/mevdschee/php-crud-api/issues/comments/266823230","html_url":"https://github.com/mevdschee/php-crud-api/issues/147#issuecomment-266823230","issue_url":"https://api.github.com/repos/mevdschee/php-crud-api/issues/147","id":266823230,"user":{"login":"mevdschee","id":1288217,"avatar_url":"https://avatars.githubusercontent.com/u/1288217?v=3","gravatar_id":"","url":"https://api.github.com/users/mevdschee","html_url":"https://github.com/mevdschee","followers_url":"https://api.github.com/users/mevdschee/followers","following_url":"https://api.github.com/users/mevdschee/following{/other_user}","gists_url":"https://api.github.com/users/mevdschee/gists{/gist_id}","starred_url":"https://api.github.com/users/mevdschee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mevdschee/subscriptions","organizations_url":"https://api.github.com/users/mevdschee/orgs","repos_url":"https://api.github.com/users/mevdschee/repos","events_url":"https://api.github.com/users/mevdschee/events{/privacy}","received_events_url":"https://api.github.com/users/mevdschee/received_events","type":"User","site_admin":false},"created_at":"2016-12-13T18:38:32Z","updated_at":"2016-12-13T18:38:32Z","body":"@greenfm Can you try to run the following:\r\n\r\n```\r\n$ php -a\r\nInteractive mode enabled\r\n\r\nphp > var_dump(MYSQLI_OPT_INT_AND_FLOAT_NATIVE);\r\nint(201)\r\nphp > \r\n```\r\n\r\nAnd see whether or not you get the same output?"}}
{"actor":{"display_login":"mevdschee"}}