Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Refused to set unsafe header "Content-Length"

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi,

Error : Refused to set unsafe header "Content-Length"

I get this javascript error in every form, view etc. What is it? How can i solve this issue? It appears with JsProvider.ashx. Sometimes it block to work form.

*This post is locked for comments

  • M2012 Profile Picture
    M2012 576 on at
    RE: Refused to set unsafe header "Content-Length"

    Hi there,

    I'm also facing same issue. It has any affecting area. 

    Currently everything working fine.

    What could be the ultimate solution for this.

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Refused to set unsafe header "Content-Length"

    I think it's happening only because Chrome and IE implement some standards in different ways. I also have this error, but feels like it's doesn't lead to any real problem.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Refused to set unsafe header "Content-Length"

    Hi Varadarajan, I use Chrome Version 56.0.2924.87

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Refused to set unsafe header "Content-Length"

    Actually, i found that this happens on Chrome, if i use IE then there is no error. I also realise that there are lots of javascript errors if i use other browsers instead of IE.

  • RE: Refused to set unsafe header "Content-Length"

    Hi Mehmet,

    What browser are you using? Are you experiencing this behavior on IE 11?

    If you are using Google chrome what is the version number?

    Thanks.

  • Suggested answer
    Nithya Gopinath Profile Picture
    Nithya Gopinath 17,074 on at
    RE: Refused to set unsafe header "Content-Length"

    Hi,

    Have you written an XML request in the Javascript library registered in the form? It can lead to this error.

    See: http://stackoverflow.com/questions/7210507/ajax-post-error-refused-to-set-unsafe-header-connection

    Hope this helps.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Congratulations 2024 Spotlight Honorees!

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December!

Congratulations to our December super stars! 🥳

Get Started Blogging in the Community

Hosted or syndicated blogging is available! ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,602 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,338 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans