Topic: Refused to set unsafe header "User-Agent"

Hi guys...

Something new...
I was testing my app in a new hosting for a client, but something is not working propertly.
when i launch a function with onclick event, firebug told me error 500 "Refused to set unsafe header "User-Agent"" and dont load or execute the xajax function.

someone with the same problem?? any Help??

in my own server, the error popup but the function execute well.

(sorry, but my english is not the best)

Re: Refused to set unsafe header "User-Agent"

Hi,

I googled the error message and got a boat load of hits. After reading several, the problem appears to be with Crome.

Have you tried it using FF?

If you ever stop learning you may as well dig a hole, crawl in and pull the top over yourself.

Re: Refused to set unsafe header "User-Agent"

Hi, the error got on Opera, Chrome, but i try with IE10 and works fine.
Anyway, if i put the same script in my server (without security) i got the same error but execute fine, even on Chrome, ie or Opera.

Re: Refused to set unsafe header "User-Agent"

Here's a url that addresses it :

http://www.w3.org/TR/XMLHttpRequest/#th … r()-method

I use xajax with chrome without any errors.

I use it within the CI framework with no problems.

Are you using a framework that perhaps messes with the XHR object settings?

If you ever stop learning you may as well dig a hole, crawl in and pull the top over yourself.