javascript - CORS with php headers -
i have simple php script attempting cross-domain cors request:
<?php header("access-control-allow-origin: *"); header("access-control-allow-headers: *"); ... yet still error:
request header field
x-requested-withnot allowedaccess-control-allow-headers
anything i'm missing?
access-control-allow-headers not allow * accepted value, see mozilla documentation here.
instead of asterisk, should send accepted headers (first x-requested-with error says).
Comments
Post a Comment