javascript - How to make cors request with ajax and jquery only? -
i fetching info other third-party website , doing iff jquery , ajax so, how can create happening? because says origin not allowed access-control-allow-origin.
cors isn't feature of request. create http request ajax same way create other http request ajax.
the server making request has grant permission website making request using cors headers in response (and perchance preflight options request in case of complex request).
you need add together access-control-allow-origin: http://example.com
(where illustration url origin of request) response headers server.
javascript jquery ajax
No comments:
Post a Comment