Hi! I ran into a problem when I was creating a resource on the web side.
I am sending a request with this body to the local host:5173:
{
“ext”: “.mp4”,
“name”: “bruno2.mp4”,
“uri”: “/data/screenly_assets/a9f133f9898a5daebb1c620cd0b0844b.tmp”,
“start_date”: “2025-01-03T09:57:48.753Z”,
“end_date”: “2026-01-03T09:57:48.753Z”,
“duration”: 0,
“mimetype”: “video/mp4”,
“is_enabled”: true,
“is_processing”: true,
“nocache”: false,
“play_order”: 0,
“skip_asset_check”: true
} I getting this -
videos:1 Access to XMLHttpRequest at ‘http://176.123.167.23/api/v2/assets’ from origin ‘http://localhost:5173’ has been blocked by CORS policy: Request header field content-type is not allowed by Access-Control-Allow-Headers in preflight response.
But if I send another exactly the same request to Bruno (an application similar to Postman), everything goes well. I would really appreciate your help