Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
vincent_1234
Helper I
Helper I

Request header origin is "null" on portal

Dear all,

 

I'm developing a custom visual which makes an ajax call.

Because this is cross domain, I have to regulate the "Access-Control-Allow-Origin" header in my service, but I do not want to wildcard this.

My visual works just great in the devtools and the power bi designer, however when I publish the report to the server, the request fails. When I open up F12 tools I can see more of those requests failing, for me for a strange reason.

 

The request header "Origin" is "null".

This is strange as this should be the base address of the portal and can't even be modified by javascript.

What is causing this?

 

Thanks in advance

 

originnull.png

1 REPLY 1
junesoo
Regular Visitor

This is because the custom visual iframe is sandboxed and it doesn't have allow-same-origin.

 

There's nothing you can do really, at least nothing that I know of.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.