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
On Firefox, I can see the following in my console:
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://webmention.io/api/mentions.jf2?domain=example.com&token=token_example. (Reason: CORS request did not succeed).
On trying to look around the web, I have a solitary article from Jeremy Wynn here, if it helps. As per their article, the issue is only observed on Safari and Firefox, and perhaps has something to do with how Firefox and Safari are making a preflight request and getting an invalid preflight response, thereby not proceeding with the actual request-response cycle.
Edit
Some more findings below:
CORS-specification compliant browsers will send an OPTIONS request before making the actual CORS request. I investigated controller.rb briefly and it seems this service uses Sinatra. I'm not proficient at all in Ruby so I hope it isn't a misreading.
Others have fixed their problems by using a CORS plugin for Sinatra, such as, sinatra-cross_origin. Resources linked below, in case they are of any assistance:
Chrome on Ubuntu 19.10: 81.0.4044.113 (Official Build) (64-bit)
The text was updated successfully, but these errors were encountered:
MaybeThisIsRu
changed the title
CORS error on Firefox but not Chrome
CORS error on potentially spec-compliant browsers like Firefox
Apr 21, 2020
MaybeThisIsRu
changed the title
CORS error on potentially spec-compliant browsers like Firefox
CORS error on spec-compliant browsers like Firefox and potentially Safari
Apr 21, 2020
I am using the
node-fetch
library to make a GET request to the following URL:On Firefox, I can see the following in my console:
On trying to look around the web, I have a solitary article from Jeremy Wynn here, if it helps. As per their article, the issue is only observed on Safari and Firefox, and perhaps has something to do with how Firefox and Safari are making a preflight request and getting an invalid preflight response, thereby not proceeding with the actual request-response cycle.
Edit
Some more findings below:
CORS-specification compliant browsers will send an
OPTIONS
request before making the actual CORS request. I investigated controller.rb briefly and it seems this service uses Sinatra. I'm not proficient at all in Ruby so I hope it isn't a misreading.Others have fixed their problems by using a CORS plugin for Sinatra, such as, sinatra-cross_origin. Resources linked below, in case they are of any assistance:
Library and browser versions as follows:
node-fetch
:2.6.0
75.0 (64-bit)
81.0.4044.113 (Official Build) (64-bit)
The text was updated successfully, but these errors were encountered: