• Resolved saf94

    (@saf94)


    So I’m getting stuck on the grey loading screen when trying to edit a page with elementor after just installing it. I’m seeing some CORS error’s in the console, I tried to do what the docs say about setting the X frame options to SAMEORIGIN but that hasn’t fixed the issue. This is the error i’m getting

    Access to fetch at 'https://loveforallhatredfornone.org/wp-json/elementor/v1/globals' from origin 'https://loveforallhatredfornone.org' has been blocked by CORS policy: Request header field x-wp-nonce is not allowed by Access-Control-Allow-Headers in preflight response.

    Also some other errors like this

    TypeError: Failed to fetch
        at _callee2$ (common.min.js:2:24988)
        at tryCatch (common.min.js:2:165362)
        at Generator.invoke [as _invoke] (common.min.js:2:165136)
        at Generator.next (common.min.js:2:165902)
        at asyncGeneratorStep (common.min.js:2:1480)
        at _next (common.min.js:2:1701)
        at common.min.js:2:1817
        at new Promise (<anonymous>)
        at new F (common.min.js:2:114031)
        at common.min.js:2:1643

    What i did to set the X frame options is have this in my function.php file

    function send_frame_options_header() {
    	header( 'X-Frame-Options: SAMEORIGIN' );
    }

    And also add this to my .htaccess file

    Header always set X-FRAME-OPTIONS "SAMEORIGIN"

    But none of that has fixed it. Any ideas?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘CORS Issue, stuck on grey loading’ is closed to new replies.