Forum Discussion
Anonymous
6 years agoNot applicable
CORS issue postMessage target origin does not match
I have a web application currently in development built in JavaScript ES6 modules using webpack (in VS Code) I am getting... Failed to execute 'postMessage' on 'DOMWindow': The target origin provide...
d_gosbell
Super User
6 years ago
Anonymous wrote:
The web application embeds an iframe element with the src attribute set to the url of the report. The report is rendered bu I interpret this as meaning the report has tried to fire some notification messages (loaded, perhaps) and failed with this message.
Any ideas or help would be appreciated as I have exhausted the internet searching for a solution!
Have you included the rs:embed=true query string parameter in the report url? If you have not included the rs:embed parameter PBIRS will try to render all the navigation elements around the report which might be what is causing this issue.
Anonymous
6 years agoNot applicable
Yes, I have. This is the url and hostdata
let hostdata = {
Build: "15.0.1102.620",
ExternalUser: "True",
IsPublicBuild: true,
Host: "Microsoft.ReportingServices.Portal.Services",
HashedUserId:
"A4A5A6E6E5E4F5027C9EE13957705E6E3112D06DDF95F57FBB4A161",
InstallationId: "abcde-9700-4abc-abcd-a1234abcd1234",
IsEnabled: true,
Edition: "PBIRS Developer",
AuthenticationTypes: "RSWindowsNTLM",
NumberOfProcessors: 1,
NumberOfCores: 4,
IsVirtualMachine: false,
MachineId: "01020304B1B2B3B41234567890ABCCBE",
CountInstances: 1,
Count14xInstances: 0,
Count13xInstances: 0,
Count12xInstances: 0,
Count11xInstances: 0,
ProductSku: "SSRSPBI"
};
let reportUrl = `http://localhost:4015/powerbi/?rs:embed=true&id=12345678-abcd-1234-abcd-ee77dd66&formatLocale=en-US&hostdata=${JSON.stringify(
hostdata
)}`;