You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are successfully using pexels js library in Chrome. However, when used in Safari - both desktop and mobile, and Firefox, the request fails with these messages in the console:
"Failed to load resource: Request header field User-Agent is not allowed by Access-Control-Allow-Headers."
We are running the latest 1.4.0 version of the library.
The text was updated successfully, but these errors were encountered:
bskrypnyk
changed the title
Access to pexels fails on Safari
Access to pexels fails on Safari and Firefox
Apr 6, 2023
The usage of a special User-Agent header by the Pexels client library does not fit to the fact that the Pexels server does not accept this as a CORS-unsafe header in cross-origin requests.
Hello.
We are successfully using pexels js library in Chrome. However, when used in Safari - both desktop and mobile, and Firefox, the request fails with these messages in the console:
"Failed to load resource: Request header field User-Agent is not allowed by Access-Control-Allow-Headers."
We are running the latest 1.4.0 version of the library.
The text was updated successfully, but these errors were encountered: