web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Refused to set unsafe header "Content-Length"

(0) ShareShare
ReportReport
Posted on by

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

I have the same question (0)
  • Suggested answer
    Nithya Gopinath Profile Picture
    17,078 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.

  • Varadarajan_84 Profile Picture
    on at
    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.

  • Community Member Profile Picture
    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.

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

    Hi Varadarajan, I use Chrome Version 56.0.2924.87

  • Suggested answer
    Community Member Profile Picture
    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.

  • M2012 Profile Picture
    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.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
HR-09070029-0 Profile Picture

HR-09070029-0 2

#1
UllrSki Profile Picture

UllrSki 2

#3
ED-30091530-0 Profile Picture

ED-30091530-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans