Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Refused to set unsafe header Connection

I'm getting this new error while building an online app. Anyone know what this error means?

2.0 Ghz MBP, Mac OS X (10.5.2)

Posted on Apr 16, 2008 1:39 AM

Reply
4 replies

Apr 22, 2008 10:12 AM in response to askpete

Not sure if this made the difference, but I was getting an error from the mySQL server (I didn't re-authorize the db user after modifying the stored procedure) in my remote code.

Apparently this (rightly) delivers a malformed header to Safari. It's just couched in language that isn't as clear as it perhaps could be.

I fixed the problem and everything worked as I expected.

That was my solution, your mileage may vary.

Message was edited by: kcl

Aug 1, 2008 5:06 AM in response to kcl

Hi All!

If you look real close at the error message you can see that Connection is written with a capital C. So safari means you cant set the header "Connection". This is probably an safety feature or something, i don't know actualy.

So what you can do is look at the code that makes the request an look if it sets the Connection header. If it does you must remove that piece of code.

I discovered this by accident and when i did i remembered that this topic didn't had a solution yet so i decided to post this. I don't know for 100% that it works but for me it does.

Tom

Refused to set unsafe header Connection

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.