Step 1.

CORS error same origin is due to USPS api server did not include  

Access-Control-Allow-Origin in their response header.

https://github.com/USPS/api-examples/issues/103

 request with token,

 

 

 

Step 2.

CORS error same origin is due to USPS api server did not include  

Access-Control-Allow-Origin in their response header

this is error 

 

 

 

Step 3.

Only browser have web security CORS same origin, 

Postman is raw http client, does not like browser, does not have  web security CORS same origin policy, 

therefore, postman can work with USPS api without issue.

 

 

 

 

Step 4.

Before USPS fix this bug, we can disable Chrome CORS web security 

method one

https://medium.com/@beligh.hamdi/run-chrome-browser-without-cors-872747142c61

 

 

 

 

 

Step 5.

Before USPS fix this bug, we can disable Chrome CORS web security 

method two

create chrome short cut

https://www.google.com/search?q=chrome+disable+web+security&rlz=1C1RXQR_enUS1149US1149&oq=chrome+disable+web+security&gs_lcrp=EgZjaHJvbWUyBggAEEUYOdIBCTkxNDdqMGoxNagCCLACAQ&sourceid=chrome&ie=UTF-8

 

 

Step 6.

Before USPS fix bug, 

Must disable chrome web security to bypass CORS same origin policy, 

by 2 methods prevjous to open a new chrome 

use this model 1652

 

 

 

Step 7.

red address, is estimated fake address, USPS validate red address as NOT deliverable, which is correct. 

But not always, if  USPS show a red address as YES valid address, 

that means, your data is wrong, your data should be consistent with USPS database, 

You should correct your address.  

 

 

 

Step 8.

Non-red address should be valid address,  which USPS just go further confirm that. 

 

 

 

Step 9.

Non-red address should be valid address,  which USPS just go further confirm that. 

 

 

 

 

 

 

 

 

Step 10.

red address, should be Not valid, if the other way, that means your data need to correct 

 

 

 

 

 

Step 11.

here is good example

USPS think this address is valid, while your locator think this address is red, fake address,  

6510 ARBUTUS AVE, HUNTINGTON PARK, CA, 90255-3180

6000 ARBUtTUS AVE, HUNTINGTON PARK, CA, 90255-318

 

 

 

Step 12.

USPS think this address is valid, while your locator think this address is red, fake address,  

that means, your data need correct, consistent with USPS 

6510 ARBUTUS AVE, HUNTINGTON PARK, CA, 90255-3180

 

 

 

Step 13.

 

 

 

 

 

Step 14.

 

 

 

 

Step 15.

 

 

 

 

 

Step 16.

 

 

Step 17.

 

Step 18.

 

Step 19.

 

Step 20.

 

by

Please log in or register