Chrome service mock-response demo fails in Firefox with Same Origin Policy error

RESOLVED WORKSFORME

Status

()

Core
DOM: Service Workers
RESOLVED WORKSFORME
3 years ago
3 years ago

People

(Reporter: ashughes, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

3 years ago
Simply load https://googlechrome.github.io/samples/service-worker/mock-responses/index.html and click the "Shorten" button.

In Chrome, a shortened URL is generated.

In Firefox, no URL is generated and the following error appears in the console:
> Cross-Origin Request Blocked: The Same Origin Policy disallows reading 
> the remote resource at 
> https://www.googleapis.com/urlshortener/v1/url?key=AIzaSyCr0XVB-Hz1ohPpjvLatdj4qZ5zcSohHsU.
> (Reason: CORS header 'Access-Control-Allow-Origin' missing).

Updated

3 years ago
Blocks: 1059784
This works for me as of central a6eeb28458fd
Status: NEW → RESOLVED
Last Resolved: 3 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.