Showing posts with label Cross-Origin. Show all posts
Showing posts with label Cross-Origin. Show all posts

Tuesday 26 June 2018

Load denied by X-Frame-Options: does not permit cross-origin framing in Magento 2


Step 1 : Open magentoroot/app/etc/env.php 
Step 2 : Find -> 'x-frame-options' => 'SAMEORIGIN',
Step 3 : Replace -> 'x-frame-options' => 'GOFORIT',

Monday 27 June 2016

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource

Write following code into cross-origin's .htaccess file

<IfModule mod_headers.c>
    Header set Access-Control-Allow-Origin "*"
</IfModule>

Example:


  • You open "http://example.com" (here you see the cross-origin error of http://abc.com)
  • Open .htaccess of abc.com and paste above code.

Ex 2 .

in php file : header('Access-Control-Allow-Origin: *');