cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
New Member
New Member

Getting IppResponseError with statuscode 406 when using IPP in google chrome extension

Hello,

I'm working on a google chrome extension to send print jobs using IPP.

I'm able to send printjobs to other printers, but I'm not able to send them to the XEROX VERSALINK C405.

I'm getting the following error when trying to retrieve it's attributes:

Received unexpected response status 406 from the printer

However, I'm able to retrieve the printer attributes with the following NodeJS script:

ipp = require('ipp');
var printer = ipp.Printer("ipp://myprinterip:631/",{"version":"2.0"});
var msg = {
		    "operation-attributes-tag": {
		        "attributes-charset": "utf-8",
		        "attributes-natural-language": "en",
		    }
		};
printer.execute("Get-Printer-Attributes", msg, function(err, res){
  if (err) return console.log(err);
  console.log(res);
});

But when I run this very same code from a chrome extension, I'm getting the 406 response... (I'm using browserify to be able to use the node ipp libraries)

I wonder if I'm doing something wrong...

If I launch a virtual printer with ipp-printer command, I'm able to retrieve the attributes of the virtual printer from the chrome extension...

 

0 Kudos
2 Replies
Highlighted
New Member
New Member

Re: Getting IppResponseError with statuscode 406 when using IPP in google chrome extension

I found out that I'm able to get a response if I configure a proxy (I'm using OWASP ZAP)...

So I deactivated the proxy and inspected the response error and I see that the error type is "cors"...

Looks like it's denying the request because for some reason it's detecting CORS...

How can I allow CORS in the C405 printer?

0 Kudos
Highlighted
Valued Advisor
Valued Advisor

Re: Getting IppResponseError with statuscode 406 when using IPP in google chrome extension

Hi,

Chrome is known to have some issue with VersaLink family. For example to open the EWS, but this problem was solved with last machine firmware:

 https://www.support.xerox.com/support/versalink-c405/file-download/enus.html?operatingSystem=win7x64...

 

Gabi

0 Kudos