Disable validation for test environment?

Is there anyway to bypass the URL validation that snipcart does if it is on a testing domain? Any attribute that can be added to the products?

Example:
test.domain.com = don’t validate via URL
www.domain.com = business as usual

Answered my own question. Use the X-Snipcart-Purpose and X-Snipcart-RequestToken headers

can you elaborte more on the solution