CORS (Cross Origin Resource Share) Cross-Origin Resource Sharing

// allow remote access

header('Access-Control-Allow-Origin: *');

This solution does not require the client to make any changes, just add a 'Access-Control-Allow-Origin response header, to allow the standard to specify whether the resource request when the requested domain of the server's response, wherein the asterisk indicates that all wildcard address, if only one adapter address, may be "*" to the address corresponding to

Published 43 original articles · won praise 1 · views 3144

Guess you like

Origin blog.csdn.net/u011523953/article/details/104325541