D
D
devilsD2020-02-12 18:58:29
JavaScript
devilsD, 2020-02-12 18:58:29

What are the requirements of Safari for cross-domain requests, does the request work in all browsers except Safari?

The essence of the question is in the title, for some reason, when I request a safari to api, I get a network error;
There is no apple, so there is no way to catch this error.
Here are the request/response headers
Request:


Accept
application/json, text/plain, */*
Accept-Encoding
gzip, deflate, br
Accept-Language
ru,en-US;q=0.7,en;q=0.3
Authorization
Bearer ZqyhjpUxDiJV0XRfAe2zl9fgIZGp5D2d
Connection
keep-alive
Host
test.com
Origin
front-test.com
Referer
front-test.com
User-Agent
Mozilla/5.0 (X11; Ubuntu; Linu…) Gecko/20100101 Firefox/72.0


Answer:

Access-Control-Allow-Origin
test.com
Access-Control-Expose-Headers
*
Connection
keep-alive
Content-Type
application/json; charset=UTF-8
Date
Wed, 12 Feb 2020 15:48:31 GMT
Link
; rel=self
Server
nginx/1.12.1
Strict-Transport-Security
max-age=31536000;
Transfer-Encoding
chunked

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question