Fix Core issue with FLUTTER website -- 2
Budget: $10 – $30 USD
hello
I have a custom backend on PLESK / Nginx and FLUTTER Frontend and I have only one issue regarding CORS which is as following:
From Safari:
[Error] Origin https://****.net is not allowed by Access-Control-Allow-Origin. Status code: 200
[Error] XMLHttpRequest cannot load https://****.com/v2/InitiatePayment due to access control checks.
[Error] Failed to load resource: Origin https://****.net is not allowed by Access-Control-Allow-Origin. Status code: 200 (InitiatePayment, line 0)
[Error] Origin https://****.net is not allowed by Access-Control-Allow-Origin. Status code: 200
[Error] XMLHttpRequest cannot load https://****.com/v2/InitiatePayment due to access control checks.
[Error] Failed to load resource: Origin https://****.net is not allowed by Access-Control-Allow-Origin. Status code: 200 (InitiatePayment, line 0)
From chrome:
A cross-origin resource sharing (CORS) request was blocked because of invalid or missing response headers of the request or the associated preflight request .
To fix this issue, ensure the response to the CORS request and/or the associated preflight request are not missing headers and use valid header values.
Note that if an opaque response is sufficient, the request's mode can be set to no-cors to fetch the resource with CORS disabled; that way CORS headers are not required but the response content is inaccessible (opaque).
I tried to put headers put still need to be added correctly..
I have a custom backend on PLESK / Nginx and FLUTTER Frontend and I have only one issue regarding CORS which is as following:
From Safari:
[Error] Origin https://****.net is not allowed by Access-Control-Allow-Origin. Status code: 200
[Error] XMLHttpRequest cannot load https://****.com/v2/InitiatePayment due to access control checks.
[Error] Failed to load resource: Origin https://****.net is not allowed by Access-Control-Allow-Origin. Status code: 200 (InitiatePayment, line 0)
[Error] Origin https://****.net is not allowed by Access-Control-Allow-Origin. Status code: 200
[Error] XMLHttpRequest cannot load https://****.com/v2/InitiatePayment due to access control checks.
[Error] Failed to load resource: Origin https://****.net is not allowed by Access-Control-Allow-Origin. Status code: 200 (InitiatePayment, line 0)
From chrome:
A cross-origin resource sharing (CORS) request was blocked because of invalid or missing response headers of the request or the associated preflight request .
To fix this issue, ensure the response to the CORS request and/or the associated preflight request are not missing headers and use valid header values.
Note that if an opaque response is sufficient, the request's mode can be set to no-cors to fetch the resource with CORS disabled; that way CORS headers are not required but the response content is inaccessible (opaque).
I tried to put headers put still need to be added correctly..