Policy issue blocking the archiving of requests
When trying to archive a request there is a cross-origin policy issue that blocks the request.
The screen :
The error:
Blocage d’une requête multiorigines (Cross-Origin Request) : la politique « Same Origin » ne permet pas de consulter la ressource distante située sur http://localhost:8000/requests/2/conversations/. Raison : l’en-tête CORS « Access-Control-Allow-Origin » est manquant.
Blocage d’une requête multiorigines (Cross-Origin Request) : la politique « Same Origin » ne permet pas de consulter la ressource distante située sur http://localhost:8000/requests/2/conversations/. Raison : échec de la requête CORS.
TypeError: NetworkError when attempting to fetch resource.
The request generating the error:
await fetch("http://localhost:8000/requests/2/", {
"credentials": "include",
"headers": {
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:84.0) Gecko/20100101 Firefox/84.0",
"Accept": "*/*",
"Accept-Language": "fr",
"authorization": "Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6Ijg1YzQ0MTJkMGE5MTE3ODUzMjFhZmNlYjYwYWMyM2QwIn0.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0OjgwMDAiLCJzdWIiOiJodHRwOi8vbG9jYWxob3N0OjgwMDAvdXNlcnMvYmFsZXNzYW4vIiwiYXVkIjoiYzUzY2Q2Mjg4ODc3NDNlZWEzNTEzMzU4ZmRhZTU2OTYiLCJleHAiOjE2MTYzMTkxMjMsImlhdCI6MTYxMDU1OTEyMywiYXV0aF90aW1lIjoxNjEwNTU5MTIwLCJub25jZSI6InBHMzZfWjczZmdmZmkxcFl6U2paQUE5YXhZbFpVM3hTOTRTWFgxUl9BWk0iLCJhdF9oYXNoIjoiQWZaZWIyUzBtRXl6d2dHcGlWYVVJZyJ9.EZRTPemKQ55QIaegyFAhL8tEDXZtwR6lka-kJ8SIVwPZp_JsiGgc7pdZyyfmZPgSKEZxQgpVd-nJ9rUUJ26snlSCCKFZfuzWJWVy0TH_XDrdE9o21FLufJ842UvTIGR76aj6zUMjE2yMyesWtnz1t3bx5U8hwechctyj6y4aIv3eDI-zJIf8jogOHeHGJ-j5hVQvaJ43aq9X0dNGeuNexK7Nf6lf-0GofeMZxKDrUBGgpsuRm7OdpSJYf-aV31agYH6oxeI0Io9dmrAWOa5TANWZJKA7_1BuoEF6UNejQ1-0ArModpEJj8PklkeIYq-5MsyGI0KEd1BJJ1G42c8PVQ",
"content-type": "application/ld+json"
},
"referrer": "http://localhost:9000/fr/contributor-dashboard",
"body": "{\"status\":\"validated\",\"reviewer\":{\"@id\":\"http://localhost:8000/users/balessan/\"},\"@id\":\"http://localhost:8000/requests/2/\",\"@context\":{\"@vocab\":\"http://happy-dev.fr/owl/#\",\"rdf\":\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\",\"rdfs\":\"http://www.w3.org/2000/01/rdf-schema#\",\"ldp\":\"http://www.w3.org/ns/ldp#\",\"foaf\":\"http://xmlns.com/foaf/0.1/\",\"name\":\"rdfs:label\",\"acl\":\"http://www.w3.org/ns/auth/acl#\",\"permissions\":\"acl:accessControl\",\"mode\":\"acl:mode\",\"geo\":\"http://www.w3.org/2003/01/geo/wgs84_pos#\",\"lat\":\"geo:lat\",\"lng\":\"geo:long\",\"searcherProfile\":\"http://happy-dev.fr/owl/#searcher_profile\",\"contributorProfile\":\"http://happy-dev.fr/owl/#contributor_profile\",\"inbox\":\"http://happy-dev.fr/owl/#inbox\",\"object\":\"http://happy-dev.fr/owl/#object\",\"author\":\"http://happy-dev.fr/owl/#author_user\",\"account\":\"http://happy-dev.fr/owl/#account\",\"jabberID\":\"foaf:jabberID\",\"picture\":\"foaf:depiction\"}}",
"method": "PATCH",
"mode": "cors"
});