title: Epson TM-T20II Printer not able to print via javascript sdk
body: <p>I downloaded the JavaScript SDK for Epson printer that supports TM-t20ii.
  i was able to print test page using the following url:</p>
  
  <pre><code>http://192.168.2.175:9100/
  </code></pre>
  
  <p>Printer and pc connected via Ethernet and i am able to ping the printer url</p>
  
  <p>Output:</p>
  
  <pre><code>OPTIONS /cgi-bin/epos/service.cgi?devid=99&amp;timeout=10000 HTTP/1.1
  Host: 192.168.2.175:9100
  Connection: keep-alive Access-Control-Request-Method: POST
  Origin: null
  User-Agent: Mizilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36
  Access-Control-Request-Headers: content-type, if-modified-since, soapaction
  Accept: */*
  Accept-Encoding: gzip, deflate,sdch
  Accept=Language: en-US, en;q=0.8
  </code></pre>
  
  <p>but in order to Print the following request should be Used:</p>
  
  <pre><code>http://192.168.1.175/cgi-bin/epos/service.cgi?devid=999&amp;timeout=10000
  </code></pre>
  
  <p>(if i use the same request with 9100 port i get the same result printing output for <a href="http://192.168.2.175:9100/" rel="nofollow noreferrer">http://192.168.2.175:9100/</a></p>
  
  <pre><code>405 (Method Not Allowed)
  
  Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://192.168.2.172' is therefore not allowed access. The response had HTTP status code 405
  </code></pre>
  
  <p>i have read that i have to  enable the ePOS-Print setting from within the EpsonNet Config on the printer but the config does not have such option.</p>
  
  <p>i cant determine how to check if this setting is enabled or not OR what port should be used or if any other configuration is required,i checked the printer manual and printer sdk with no luck.</p>