However, I have been able to use it for the past few days, but now I am unable to use it due to a CORS error.
It seems to be caused by the lack of Access-Control-Allow-* in the response from cloudflare.
Is there any way to fix this?
Code: Select all
curl -X OPTIONS \
-v 'https://api.opensubtitles.com/api/v1/subtitles?episode_number=1&languages=en&query=sneaky+pete&season_number=1' \
-H 'Access-Control-Request-Method: GET' \
-H 'Access-Control-Request-Headers: api-key,content-type' \
-H 'Accept: application/json' \
-H 'Api-Key: XXXXXXXXXXXXXXX' \
-H 'Origin: http://localhost'
Code: Select all
< HTTP/2 200
< date: Thu, 01 Jun 2023 12:07:40 GMT
< content-length: 0
< accept-ranges: bytes
< x-kong-upstream-latency: 1
< x-kong-proxy-latency: 1
< x-cache-backend: apigw1_8000 rb7
< age: 0
< x-var-cache: MISS
< x-via: fw1
< cf-cache-status: DYNAMIC
< report-to: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=XXXXXXXXX"}],"group":"cf-nel","max_age":604800}
< nel: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
< strict-transport-security: max-age=15552000; includeSubDomains; preload
< x-content-type-options: nosniff
< server: cloudflare
< cf-ray: 7d07566e689b1f57-NRT
< alt-svc: h3=":443"; ma=86400