{"id":20332315,"url":"https://github.com/wavemaker/cordova-plugin-local-webserver","last_synced_at":"2025-04-11T21:23:10.728Z","repository":{"id":83515808,"uuid":"247934942","full_name":"wavemaker/cordova-plugin-local-webserver","owner":"wavemaker","description":"A copy of https://github.com/apache/cordova-plugins/tree/local-webserver","archived":false,"fork":false,"pushed_at":"2020-04-01T08:55:14.000Z","size":9192,"stargazers_count":0,"open_issues_count":0,"forks_count":7,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-25T17:22:15.946Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Objective-C","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wavemaker.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-03-17T09:58:40.000Z","updated_at":"2020-04-01T08:55:17.000Z","dependencies_parsed_at":"2023-06-02T12:15:28.026Z","dependency_job_id":null,"html_url":"https://github.com/wavemaker/cordova-plugin-local-webserver","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wavemaker%2Fcordova-plugin-local-webserver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wavemaker%2Fcordova-plugin-local-webserver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wavemaker%2Fcordova-plugin-local-webserver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wavemaker%2Fcordova-plugin-local-webserver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wavemaker","download_url":"https://codeload.github.com/wavemaker/cordova-plugin-local-webserver/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248481014,"owners_count":21111066,"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-11-14T20:26:00.453Z","updated_at":"2025-04-11T21:23:10.716Z","avatar_url":"https://github.com/wavemaker.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cordova Local WebServer\n\nThis Apache Cordova plugin will install a local web server in your iOS app, and will serve the contents of your `www` directory, looking for an index page of `index.html`.\n\nAfter the plugin is installed, it changes the `config.xml` in your project root by modifying this tag to:\n    \n        \u003ccontent src=\"http://localhost:0\" /\u003e\n    \nFor the local web server to start, the url **must** be http://localhost, and you can set the port to whatever you want in the url, the local web server will use this as the port automatically. `If you set the port to \"0\", it will select a randomized and free port.`\n    \nCheck your console log for errors in configuration. \n\n### localStorage, IndexedDB persistence\n\nIf you plan on using HTML5 localStorage and/or IndexedDB, you must choose a fixed port in the `content` tag specified above. This is because of the HTML5 Origin policy (scheme, domain and port must be the same).\n\nIn the `config.xml` in your project root, change the '0' port to a number between 1 and 49152 (avoiding the ephemeral port range of 49152 to 65535 on iOS). For example:\n    \n        \u003ccontent src=\"http://localhost:49000\" /\u003e\n    \n\nThis port number must be consistent across all app launches for saved data to be accessed.\n\n\n## Security Caveats\n\n    In order to limit access to your app, requests are restricted to localhost and are protected with an auth token.\n    This should effectively restrict access to the server to your app.\n    \nThis plugin is only compatible with the 3.7.0 release of cordova-ios, or greater.\n    \n\n## Credits\n\nThe local web server implementation is from https://github.com/swisspol/GCDWebServer\n\nTo update with the latest from that repo execute in the top-level directory:\n\n        git remote add GCDWebServer https://github.com/swisspol/GCDWebServer.git\n        git subtree pull --prefix=local-webserver/src/ios/GCDWebServer --squash GCDWebServer master\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwavemaker%2Fcordova-plugin-local-webserver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwavemaker%2Fcordova-plugin-local-webserver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwavemaker%2Fcordova-plugin-local-webserver/lists"}