Jump to content

HTTP Header

Oliver Morsch

Recommended Posts



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.






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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...