Skip to content

HTTP security response headers

Every response Myra AI Workspace serves to a browser carries a set of HTTP security headers that harden the web application against common client-side attacks (cross-site scripting, clickjacking, protocol downgrade, MIME-type confusion). They are applied at the edge/application tier and require no configuration by tenants.

Headers at a glance

Header Value (application UI) Protects against
Content-Security-Policy see below cross-site scripting, data exfiltration, unwanted framing
Strict-Transport-Security max-age=63072000; includeSubDomains protocol downgrade / SSL-stripping
X-Frame-Options SAMEORIGIN clickjacking
X-Content-Type-Options nosniff MIME-type confusion attacks
X-Robots-Tag noindex, nofollow — on the public share page (URLs under /shared/…) and the Outlook add-in task pane (/outlook/) a private transcript reachable by an unguessable link, or the add-in pane, being indexed by a search engine

Strict-Transport-Security (HSTS) tells the browser to only ever contact the host over HTTPS for the next two years. X-Content-Type-Options: nosniff stops the browser from second-guessing a response's declared content type. Both are sent on every response — the application UI, the API, and the documentation.

Content Security Policy

The application UI is served with a Content Security Policy that constrains where scripts, styles, images, fonts, connections and frames may come from:

default-src 'self';
script-src  'self' 'unsafe-inline' https://mtm.myrasecurity.com https://cdn.eu-captcha.eu <ad-tag script hosts>;
style-src   'self' 'unsafe-inline' <MCP-app media hosts> https://www.redditstatic.com;
img-src     'self' data: blob: https://mtm.myrasecurity.com <MCP-app media hosts> <ad-tag beacon hosts>;
media-src   'self' data: blob: <MCP-app media hosts>;
font-src    'self' data: <MCP-app media hosts>;
connect-src 'self' <the environment's API hosts> <the admin API hosts as wss://> https://mtm.myrasecurity.com https://api.eu-captcha.eu <ad-tag beacon hosts>;
worker-src  'self' blob:;
frame-src   'self' blob: <the environment's admin API hosts> https://cdn.eu-captcha.eu https://www.googletagmanager.com;
frame-ancestors 'self';
object-src  'none';
base-uri    'self';
form-action 'self'

Why each directive is shaped this way:

  • default-src 'self' — the baseline: by default a page may only load resources from its own origin. Every exception below is deliberate and enumerated.
  • img-src 'self' data: blob: (+ Matomo, MCP-app media hosts, ad-conversion beacon hosts) — the UI renders several images as inline data:/blob: URLs rather than separate network requests: AI-generated images from the code interpreter, uploaded attachment thumbnails, the in-app tenant logo, and the pre-auth login logo. The login logo is fetched over connect-src (as JSON) and rendered as a data: URL for exactly this reason — a cross-host <img src> to the admin/auth asset host would be blocked in a split-host deployment. Notably, wildcard https: is excluded — an image reference written as Markdown is never loaded in an assistant reply, in your own chat messages, or in any message on a shared-conversation page (including the sender's own), whatever its address: it is shown as inert text (the alt text, or a neutral placeholder) instead. Other Markdown surfaces (document previews and the like) load same-origin images and show external images as inert text. Both close a zero-click tracking/exfiltration channel. Images the gateway itself generated are not Markdown; they appear as image cards. The host-specific exceptions are https://mtm.myrasecurity.com (the Matomo analytics image beacon — see below), the MCP-app media hosts (below) and the ad-conversion tags' beacon hosts (see "Ad-conversion tags" below).
  • media-src 'self' data: blob: (+ MCP-app media hosts) — audio/video elements load from the app's own origin, inline data:/blob: sources and the MCP-app media hosts (below). The read-aloud (text-to-speech) feature fetches synthesized audio and plays it from a blob: object URL; sandboxed artifacts may inline small data:/blob: media. As with img-src, wildcard https: is excluded — the only external hosts are the MCP-app media hosts (below) — so an external <audio>/<video> URL in model or document output is never auto-loaded: the CSP blocks every other host, and the chat's own renderer never turns such a URL into a media element, whatever host it names (the same zero-click-exfiltration close). (Without this directive, media falls back to default-src 'self', which does not cover blob:, and read-aloud is blocked outright.)
  • <MCP-app media hosts> = https://*.cloudfront.net https://*.runwayml.com https://*.amazonaws.com in img-src, media-src, font-src and style-src — exactly the resourceDomains the Runway connector declares for its in-chat media viewer. At the page level they apply to every MCP-app viewer, so any connector's viewer that declares one of these hosts can load media from it (each viewer still loads only from the hosts it declared). That viewer is an about:srcdoc frame, and a srcdoc frame inherits the page's policy in addition to its own: without these hosts here the generated video, images and fonts are blocked even though the viewer's own policy allows them. They are not in script-src or connect-src. This widens only the CSP layer: model and document output in the chat still never auto-loads an external image (it is rendered as inert text by the app itself — including an image attached to a user's own message, which is shown only when it is inline image data), and every sandboxed frame (each artifact, and each MCP-app viewer) carries its own stricter policy — inserted ahead of any of the frame's own content, so nothing in that content can precede it — which still blocks these hosts (an MCP-app viewer allows only the ones it declared). Previews carry their own policy from the first byte. A preview is a srcdoc frame and inherits the policies of the document around it; its own policy only applies once its own first element is parsed, and Firefox has been reported to request an <img srcset> / <picture><source srcset> before that. So every preview renders inside a small host document that carries the preview's own policy too (as a second policy next to its navigation fence): the preview inherits it, whatever its document says or when its own policy applies. For a model-written artifact that policy allows no remote host at all, so it can never send a request to any of the hosts in this page policy (proven in Chromium, Firefox and WebKit, also for a preview with no policy of its own); an MCP-app viewer stays within the media hosts its connector declared. Supporting a further MCP-app connector whose media lives on other hosts needs those hosts added here too. See MCP — How the SPA renders the viewer.
  • connect-src — the UI may only open network connections (data fetches, chat streaming, error reporting) to its own origin and the API hosts for its environment, plus https://mtm.myrasecurity.com for the Matomo analytics beacon, the EU Captcha API and the ad-conversion tags' collection hosts (see below). The admin API hosts (ai-api-admin, ai-api-admin-int, ai-api-admin-beta) are also listed with the wss:// scheme, because live dictation streams microphone audio to the gateway over a WebSocket on the same host (the wss:// twins are listed explicitly so engines without the CSP3 scheme upgrade still allow the socket, and the policy names the exact allowed origins). Connections to any other host are blocked — including the FX rate source: the daily USD→EUR exchange rate for cost display is fetched by the gateway server-side and served from the API, so no third-party FX host appears in the policy.
  • frame-src 'self' blob: — the UI embeds two kinds of frames: interactive artifacts produced by the assistant (rendered in a locked-down, script-only sandbox) and inline previews of documents such as PDFs. A PDF attached to a chat message is previewed from a blob: object URL of its own bytes, which are checked to be a PDF and always typed application/pdf, so the browser's PDF viewer renders them and never as a page. blob: is granted to frames, images, media and workers only — never to script-src, child-src, object-src, default-src or any other directive; the security-header check enforces this allowlist. Besides these, only the EU Captcha widget origin and https://www.googletagmanager.com (the Google tag, see "Ad-conversion tags") are permitted.
  • object-src 'none', base-uri 'self', form-action 'self', frame-ancestors 'self' — hardening: no legacy plugin embeds, no <base> hijacking, forms may only submit to the application itself, and the application may not be embedded in a frame by another site (an additional clickjacking control alongside X-Frame-Options).

Why script-src allows inline scripts

script-src permits 'unsafe-inline' rather than pinning specific script hashes. This is a deliberate, necessary trade-off for the assistant artifact feature: interactive artifacts (for example an assistant-authored React component or an HTML/SVG preview) run untrusted, model-authored code inside a sandboxed frame with an opaque origin and no access to cookies, storage, or the parent page. Such a frame inherits the parent page's Content Security Policy, so a hash- or nonce-based script-src would block the artifact's own inline scripts and the feature could not run at all. The untrusted artifact code is instead contained by the sandbox itself and by the frame's own stricter policy (it is permitted no network access — connect-src 'none'), which is where the real isolation boundary lives. That per-frame policy applies to every artifact kind — the interactive React preview as well as the HTML and SVG previews.

A preview cannot navigate its own frame. No Content-Security-Policy directive controls where a frame may navigate itself; only the embedding page's frame-src limits it, and the application's frame-src has to allow the sign-up captcha's origin (and the Google tag's origin). So every preview (artifact panel, card thumbnail, the "Open in new tab" view, React previews and MCP app viewers) renders one frame below a small host document of the application (delivered inline as the frame's srcdoc — no request, no server route), whose own policy is frame-src 'none': the preview renders and works as before, but a script- or link-driven navigation of it — to any origin, including the application's own — is blocked by the browser and no request is sent. The host acts only on messages from the application, grants the preview nothing beyond allow-scripts (a slide-deck preview gets no flags at all — it runs no scripts; the same holds for the Present view of a deck, which renders each slide without scripts in frames with no sandbox flags), and passes messages only between the application and the preview currently shown. Known residuals: a link the user explicitly opens in a new tab (ctrl / shift / middle click) opens like any link; WebRTC peer connections are not governed by CSP; WebKit may pre-connect to a host named in <link rel=preconnect>.

In the Myra AI mobile apps the same holds, and the apps add their own rule in front of it: a navigation that would load inside an embedded frame (a preview, an embedded widget) is never handed to the phone's browser or to another app. The app either lets it load in the frame (then the policies above decide), or drops it — a preview's own navigation (dropped by the app or by the preview fence above) and any link to an app scheme (for example whatsapp:, sms: or intent:) inside a frame are dropped. A preview cannot open windows or navigate the app itself at all (its sandbox allows neither). A preview (or any other embedded frame) also gets none of the apps' native functions — share, clipboard, saving a file, notifications, app settings, environment switch: only the application's own top-level page can call them. A plain link tapped inside an embedded frame (for example inside the PDF preview) therefore stays in that frame instead of opening the browser. Links the application itself shows, tapped by the user, still open in the browser, mail or phone app as before. The sign-up captcha now renders inside the iOS app instead of opening the browser.

script-src still forbids eval and forbids loading scripts from any external origin except the enumerated hosts: the Matomo analytics host, the EU Captcha widget host and the ad-conversion tag hosts (see below).

EU Captcha widget (https://cdn.eu-captcha.eu, https://api.eu-captcha.eu)

The sign-up form embeds the EU Captcha widget (a Myra-operated service). It needs exactly four additions to the policy above, and nothing else:

Directive Added Why
script-src https://cdn.eu-captcha.eu the widget script (verify.js)
frame-src https://cdn.eu-captcha.eu the widget's challenge page, shown in an iframe
connect-src https://api.eu-captcha.eu a request the widget script makes from the page
worker-src blob: a short-lived worker the widget script starts to collect browser signals

The challenge page runs inside its own iframe with its own origin, so its scripts, styles, logo and its calls to the captcha API are governed by the vendor's headers, not by this policy. Sandboxed artifact previews inherit this policy but also carry their own, stricter policy (frame-src 'none', connect-src 'none', worker-src 'none', no external script host); both apply, so these additions give them no access to the widget origins.

The additions are app-wide rather than limited to the sign-up path: the SPA is one document that navigates client-side (for example from the login page to Create account), and a policy is fixed when the document loads — a policy scoped to /signup would block the widget for everyone who reaches sign-up from inside the app.

Ad-conversion tags

The Matomo Tag Manager container also carries the advertising platforms' tags, which report a registration or a purchase in real time (Ad-conversion events; consent for them is obtained upstream on www.myrasecurity.com and was reviewed by Myra's compliance department). Their hosts are listed as each platform's own documentation names them, per directive, no wildcard. LinkedIn documents only a list of domains "not to block", without directives; the directive placement in its row is ours (the script host from its tag snippet, the beacon hosts in img-src and connect-src):

Platform (source) script-src img-src connect-src other
Google Ads (Google tag CSP guide) www.googletagmanager.com www.googleadservices.com www.google.com www.googletagmanager.com www.googleadservices.com googleads.g.doubleclick.net pagead2.googlesyndication.com www.google.com www.google.de www.google.at www.google.ch the img-src hosts + ad.doubleclick.net frame-src www.googletagmanager.com
Microsoft Advertising UET (UET and CSP) bat.bing.com bat.bing.net bat.bing.com bat.bing.net —
OpenAI / ChatGPT ads (Measurement Pixel) bzrcdn.openai.com bzr.openai.com bzr.openai.com bzrcdn.openai.com
Reddit (Reddit Pixel, specific hosts) www.redditstatic.com alb.reddit.com pixel-config.reddit.com ads.reddit.com www.redditstatic.com alb.reddit.com style-src www.redditstatic.com
LinkedIn Insight Tag (LinkedIn's domain list) snap.licdn.com px.ads.linkedin.com px4.ads.linkedin.com dc.ads.linkedin.com the same three

LinkedIn's further listed domains (p.adsymptotic.com, cdn.linkedin.oribi.io, gw.linkedin.oribi.io, sjs.bizographics.com, linkedin.com) and Google country domains other than those of the target markets (www.google.de, .at, .ch) are added only when the browser reports a blocked request for them while the tags are tested in Matomo's preview on the INT host. The tags run with the page's full script access (they are first-party-trusted vendor code loaded by the tag container). The page loads no tag container at all when its address fragment carries a key=value pair (sign-in links, opt-out links, a composer pre-fill) or on a shared conversation link, so no credential in an address reaches a tag. An MCP-app viewer can never use one of these hosts: a connector that declares one has it dropped (MCP).

A model-written artifact or preview can never reach these hosts: previews inherit their own policy (no remote host) from the document they render in — see img-src above.

Matomo analytics (https://mtm.myrasecurity.com)

The public web surfaces load Matomo Tag Manager for product analytics. This adds one host-specific external origin, https://mtm.myrasecurity.com (a Myra-operated domain), to three directives — script-src (the container and tracker JavaScript), img-src (the image-beacon fallback), and connect-src (the matomo.php tracking beacon). All three target that one host; apart from the MCP-app media hosts in img-src / media-src / font-src / style-src (above) and the ad-conversion tag hosts (previous section), no other external origin is permitted, so the policy stays otherwise closed.

The web app loads the tracker only on the production host (ai.myra.eu) and the INT host (ai-int.myra.eu), each with its own container and its own Matomo site, so INT data never reaches the production site; the documentation site loads its own container on ai-docs.myra.eu / ai-docs-beta.myra.eu. In the web app it is also skipped when a session starts on a shared-conversation link (/shared/*, the token is part of the path), and the loader never injects the container script twice. A hostname gate means it never loads on beta, development, CI, or preview builds, so those are permitted by the CSP but never actually inject it. Matomo is operated by Myra; its cookie and consent configuration is documented in the privacy policy.

On the production and INT web apps the tracker also receives a small, fixed set of goal events (trial started or rejected, upgrade and checkout clicks, a premium-feature wall, a sales contact request, trial credit exhausted) and the visitor's account group (trial or paid). Only fixed labels and plan ids are sent: never chat text, prompts, file names, e-mail addresses, names, tokens or free-text error messages. Matomo's own page views on route changes come from the container's History Change trigger (never the ad-platform tags' page views).

Because that per-frame policy also blocks stylesheets, web fonts, remote images and API calls, an artifact has to be self-contained to render at all. The assistant's instructions state this constraint explicitly, so a generated artifact inlines its CSS and JavaScript and embeds images and fonts as data: URIs rather than fetching them.

The same containment applies when an artifact is opened in its own browser tab: that tab is an application page which hosts the artifact in the identical sandboxed frame and labels it as AI-generated content. The artifact document itself is never the tab's own page.

The Present view of a slide deck opens in its own tab as an application page too. It shows each slide without running any of the deck's scripts, in frames with no sandbox flags; the full-screen and keyboard handling belong to the application page, not to the deck. Speaker notes are read inertly (the deck's <aside class="notes"> elements only; nothing else of the deck is read), shown as plain text and capped at 4000 characters per slide. A deck that does not pass the slide-deck check shows the "could not load" notice instead — never a frame with scripts.

The API and documentation

The inference and admin APIs return JSON and streamed data that browsers do not apply a page CSP to, so they carry HSTS and nosniff plus targeted framing controls rather than the full application policy. The admin API deliberately permits the application UI to frame its document downloads (so inline PDF preview works) while still blocking framing by any third-party site. The documentation site carries HSTS, nosniff and X-Frame-Options: SAMEORIGIN.

The application UI caches its fingerprinted build files (/assets/…) and its web fonts (/fonts/…) for one year and marks them immutable. The application page itself, the web-app manifest and the mobile app downloads are sent with Cache-Control: no-cache. These locations carry the same security headers as the application page.

The documentation site caches static files by whether their URL changes with their content. The theme's fingerprinted bundles (for example bundle.79ae519e.min.js) are cached for 7 days and marked immutable. Every other file - pages, the search index, the sitemap, the llms.txt files, and the site's own scripts, stylesheets and images - is sent with Cache-Control: no-cache: browsers and CDNs may keep a copy but must revalidate it on each use, which costs a 304 Not Modified when nothing changed. A new release is therefore visible on the next page load instead of up to a week later.

The Office add-in task pane (/outlook/)

The Office.js Outlook add-in task pane is served on the application origin under /outlook/ but carries its own Content Security Policy (OUTLOOK_CSP), because the application policy's frame-ancestors 'self' would prevent Microsoft Outlook from embedding the pane in its webview. This one location deliberately differs from the application policy:

  • frame-ancestors lists the Microsoft-owned Office-web host origins (https://*.cloud.microsoft, https://*.officeapps.live.com, https://*.office.com, https://*.office365.com) — never a broad *.microsoft.com wildcard — so only Microsoft's Office surfaces may frame it. *.cloud.microsoft is required because Office-on-the-web is migrating to the unified cloud.microsoft domain (completing ~mid-2025); without it the pane would be refused framing (a blank pane) as that rollout lands. X-Frame-Options is omitted for this location (it conflicts with cross-origin framing; frame-ancestors is the modern control).
  • script-src 'self' https://appsforoffice.microsoft.com allows the Office.js library from Microsoft's CDN and forbids 'unsafe-inline' (tighter than the application policy — the pane has no artifact-sandbox requirement). The pane's own logic ships as a built bundle.
  • connect-src reaches only the direct document-AI API (https://ai-api*.myra.eu).
  • The pane renders all model and mailbox output with textContent (never innerHTML), so an untrusted model response cannot inject script into this same-origin surface.

Each add-in location's policy, like the application, admin and monitor policies, is checked automatically on every build against its approved value.

The Office add-in task pane (/excel/)

The Office.js Excel add-in task pane is served under /excel/ and carries its own Content Security Policy (EXCEL_CSP), for the same reason as the Outlook pane — the application policy's frame-ancestors 'self' would prevent Excel from embedding it. EXCEL_CSP is now byte-identical to OUTLOOK_CSP (and WORD_CSP):

  • frame-ancestors is the modern full Office-web set — https://*.cloud.microsoft, https://*.officeapps.live.com, https://*.office.com, https://*.office365.com (previously least-privilege to only *.officeapps.live.com, which would refuse framing as Excel-web migrates to cloud.microsoft). Desktop Excel (WebView2) does not enforce frame-ancestors. X-Frame-Options is omitted for this location (same rationale as Outlook).
  • script-src, connect-src, and the other directives are the same as OUTLOOK_CSP.
  • The pane renders all model output and its cell preview with textContent / createElement (never innerHTML); untrusted model output written into cells is additionally neutralised against formula injection (apostrophe + text numberFormat; a formula-write is screened) — see Direct document-AI actions.

The Office add-in task pane (/word/)

The Office.js Word add-in task pane is served under /word/ and carries WORD_CSP, which is byte-identical to OUTLOOK_CSP/EXCEL_CSP — the same modern Office-web frame-ancestors set (*.cloud.microsoft + *.officeapps.live.com + *.office.com + *.office365.com), Office.js CDN in script-src, and connect-src to the direct document-AI API. The pane renders model output via textContent and inserts into the document only through safe Word APIs (insertText/insertParagraph — never a live hyperlink/image/HTML sink); see Direct document-AI actions.

The three Office add-in policies are currently identical. They are kept as three separate values, and each location is verified automatically on every build.

The /privacy.html, /tos.html and /impressum.html redirect location (301 to the route, relative Location) declares no headers of its own and therefore inherits the server-level set above unchanged.