Backend CORS is disabled by default (origin: false), and an unpacked extension's ID isn't fixed/predictable per install anyway, so allowlisting it server-side would be awkward. options.js now calls chrome.permissions.request() for the entered base URL on Save — once granted, the extension's own fetches bypass CORS entirely for that origin. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
40 lines
980 B
JSON
40 lines
980 B
JSON
{
|
|
"manifest_version": 3,
|
|
"name": "Send to Check-In Tablet",
|
|
"version": "0.1.0",
|
|
"description": "Pushes the currently open NewBook booking to a check-in tablet — standalone from NewBook Assistant, see project_checkin memory.",
|
|
|
|
"permissions": ["cookies", "storage", "activeTab", "webNavigation"],
|
|
|
|
"host_permissions": [
|
|
"https://appeu.newbook.cloud/*",
|
|
"https://login.newbook.cloud/*"
|
|
],
|
|
|
|
"optional_host_permissions": ["http://*/*", "https://*/*"],
|
|
|
|
"background": {
|
|
"service_worker": "background.js"
|
|
},
|
|
|
|
"content_scripts": [
|
|
{
|
|
"matches": ["https://appeu.newbook.cloud/bookings_lists_checkin*"],
|
|
"js": ["content-script.js"],
|
|
"run_at": "document_idle"
|
|
}
|
|
],
|
|
|
|
"action": {
|
|
"default_popup": "popup/popup.html",
|
|
"default_title": "Send to Check-In Tablet"
|
|
},
|
|
|
|
"options_page": "options/options.html",
|
|
|
|
"icons": {
|
|
"16": "icons/icon16.png",
|
|
"48": "icons/icon48.png",
|
|
"128": "icons/icon128.png"
|
|
}
|
|
}
|