cancel
Showing results for 
Search instead for 
Did you mean: 
1 Reply
CherylO-Xerox
Valued Advisor
Valued Advisor

Re: How to enable CORS

Hello maortega001,.

If you have not already resolved this issue, we suggest you search our online knowledgebase for this product: VersaLink C405.

Alternatively, you can visit our Contact Us page for other support options.

Thanks,
CherylO-Xerox
Community Manager

Be sure to click Kudos for those who have helped you.
Select Accept as Solution for posts that have helped to solve your issue(s)!

0 Kudos

How to enable CORS

Product Name: VersaLink C405 Color Multifunction Printer
Operating System: Other – specify OS in post

Hello,

I'm developing a google chrome extension using npm ipp, I'm able to connect to some printers and retrieve it's attributes as well as send print jobs to them.

The problem with the XEROX Versalink C405 is that whenever I try to retrieve the printer attributes I'm getting a 406 (Not Acceptable) error. However, I'm able to retrieve the printer attributes and send a print job just fine if I run my nodejs script from the MacOS console... I wonder what's this about, the response header has this:

Upgrade:
TLS/1.2, HTTP/1.1

 

So if I just enable TLS/1.2 in the printer I get 406 Not Acceptable when I request the https url. This is the complete response header:

Cache-Control: no-cache
Connection: close
Content-Length: 103
Content-Type: text/html
Date: Fri, 15 Nov 2019 07:06:39 GMT
Pragma: no-cache

This is the request header:

 

Accept: */*
Accept-Encoding: gzip, deflate, br
Accept-Language: en-US,en;q=0.9
Connection: keep-alive
Content-Length: 890
Content-Type: application/ipp
Host: [printerip]
Origin: chrome-extension://[extensionid]
Sec-Fetch-Mode: cors
Sec-Fetch-Site: cross-site
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.97 Safari/537.36

If I change the content-type of the request header, I get a bad request which I think that's because I'm sending in the request Payload the serialized IPP command...

 

Thank you for taking the time to check this out.

 

0 Kudos