{"id":13682255,"url":"https://github.com/monmohan/cors-tutorial-practical","last_synced_at":"2025-12-15T11:05:46.225Z","repository":{"id":146495537,"uuid":"57940741","full_name":"monmohan/cors-tutorial-practical","owner":"monmohan","description":"Demonstrate different CORS scenarios (pre-flight etc.)","archived":false,"fork":false,"pushed_at":"2024-08-24T04:14:47.000Z","size":8950,"stargazers_count":18,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-08-24T10:36:47.136Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/monmohan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-05-03T04:13:06.000Z","updated_at":"2024-08-24T04:14:50.000Z","dependencies_parsed_at":"2023-07-14T05:15:51.260Z","dependency_job_id":null,"html_url":"https://github.com/monmohan/cors-tutorial-practical","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monmohan%2Fcors-tutorial-practical","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monmohan%2Fcors-tutorial-practical/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monmohan%2Fcors-tutorial-practical/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monmohan%2Fcors-tutorial-practical/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/monmohan","download_url":"https://codeload.github.com/monmohan/cors-tutorial-practical/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224201918,"owners_count":17272665,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-02T13:01:43.010Z","updated_at":"2025-12-15T11:05:46.105Z","avatar_url":"https://github.com/monmohan.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# Step by Step Tutorial\n* The code in this repository is used to demonstrate CORS concepts like - Simple GET with Allow-Origin, requests needing pre-flight and handing credentials\n* Step by Step tutorial using this code is available as three part blog series\n* [Part I](https://medium.com/@software_factotum/cross-origin-resource-sharing-a-hands-on-tutorial-fb19748cb3b7)\n* [Part II](https://medium.com/@software_factotum/cross-origin-resource-sharing-a-hands-on-tutorial-part-ii-complex-requests-ed5be46fadcf)\n* [Part III](https://medium.com/@software_factotum/cross-origin-resource-sharing-a-hands-on-tutorial-part-iii-cookies-a60ecbee0983)\n\n\n# Running the demo\n* Download and install [golang](https://golang.org/dl/)\n* Clone the repo\n    `git clone git@github.com:monmohan/cors-tutorial-practical.git`\n* Running the Servers\n    + Map couple of loopback interfaces to page and apiserver. For example here is my etc/hosts file\n    ```\n       127.0.0.2 pageserver.cors.com\n       127.0.0.3 apiserver.cors.com\n    ```\n    + The servers can be run directly from the source\n    + Change to the relevent directory\n    + Type `go run \u003cfilename\u003e`\n- Follow along the Blogs or play around with the code .\n\nHave Fun !\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonmohan%2Fcors-tutorial-practical","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmonmohan%2Fcors-tutorial-practical","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonmohan%2Fcors-tutorial-practical/lists"}