Jump to content

HTTP Header


Oliver Morsch

Recommended Posts

Hi!

 

Is it possibble to add something to the http header (response)?

 

I have an own standalone "message server" on another port and use XMLHttpRequest (in clientside javascript) to get/post messages.

In IE10 it works properly. But in Chrome it returns with status 0 and I think this is because XSS security. So I want to try the "Content-Security-Policy" header.

 

Regards

Oliver

 

 

Link to comment
Share on other sites

Solved! I had not to change the UniGui response header. I had to change the XMLHttpRequest header (no custom headers) and the message server response header (add " Access-Control-Allow-Origin: * " there).

 

Now I have "long polling" and so I can send "push messages" from UniGui server to all UniGui clients (browsers) and more. :D

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...