{"json_modified": "2016-03-28T08:00:50.970001", "uuid": "8dbedbff-88ed-4104-b234-7282ca52ba16", "title": "Getting the page URL in NPAPI plugin", "url": "/en-US/docs/Archive/Getting_the_page_URL_in_NPAPI_plugin", "tags": ["Add-ons", "NPAPI", "Plugins", "add-ons"], "translations": [], "modified": "2016-02-29T01:54:23", "label": "Getting the page URL in NPAPI plugin", "localization_tags": [], "locale": "en-US", "id": 5941, "last_edit": "2013-11-02T08:29:20", "summary": "Sometimes, you want to restrict an NPAPI plugin to be loadable only from a certain URL or domain or scheme. Or whenever you make network requests yourself, you almost always need to enforce same-origin policy.", "sections": [{"id": "Via_window_location", "title": "Via window location"}, {"id": "Via_NPP_NewStream", "title": "Via NPP_NewStream"}, {"id": "Via_DOM", "title": "Via DOM"}], "slug": "Archive/Getting_the_page_URL_in_NPAPI_plugin", "review_tags": []}