-
Notifications
You must be signed in to change notification settings - Fork 696
Closed
Description
Description
I'm trying to fetch a local resource using Fetch API
const mjsContent = await fetch(mjsPluginUrl, {
headers: {
// doing cors request to mjs file
'Access-Control-Allow-Origin': '*',
},
}).then(async response => await response.text());get
OPTIONS http://localhost:56494/dist/index.mjs 200 OK
HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Content-Disposition: inline; filename="index.mjs"
Accept-Ranges: bytes
ETag: "bec056ae652582ae5b356ce71636ecf51562c477"
Content-Type: application/javascript; charset=utf-8
Vary: Accept-Encoding
Content-Encoding: gzip
Date: Mon, 12 Jun 2023 08:43:04 GMT
Connection: keep-alive
Keep-Alive: timeout=5
Transfer-Encoding: chunked
Body:
CORS Missing Allow Header
Library version
14.2.0
Node version
v18.12.1
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels