• I just installed WP on my local XAMPP site as well as on a remote (hosting server). I am getting issues in both locations.
    I developed a PHP apps and forms which run perfectly fine (as stand alone). Now I need to embed some forms and grids into WP Pages. I tried several different approaches but each of them ends up with the browser throwing an Error. It complains – it cannot show the content. This same thing happens in all major browsers I have stested. I even tried to completely disable Firefox security to test it and I am still getting error. The wired thing is that when I am trying to embed the links from YouTube, Twitter and similar major sites there is no problem.

    since I wond the WP domain/site and I own the PHP application, I should be able to embed the APP into the page – right ?
    I have tested this same scenario with Joomla site and got the same results. I used the same techniques in the past (year or more ago) and there was no issues.


    I wonder if anybody has some solution to this ?

    • This topic was modified 3 months, 3 weeks ago by sadarahu.
Viewing 1 replies (of 1 total)
  • It appears that the issue you’re encountering is related to the Cross-Origin Resource Sharing (CORS) settings on your server. To resolve this, you can modify your server’s CORS configuration as follows:

    Modifying Server CORS Settings:

    • Apache Server:
      In the Apache configuration file (such as httpd.conf or .htaccess), add the following directive to allow cross-origin requests from a specific domain:
      Header set Access-Control-Allow-Origin "https://example.com"

    Replace https://example.com with the domain of your WordPress site. If you want to allow all domains, you can use an asterisk (*):

      Header set Access-Control-Allow-Origin "*"

    Note: Allowing all domains can pose security risks; it’s recommended to use this setting only in a development environment.

    By adjusting these settings, you should be able to embed your PHP application into your WordPress pages without encountering browser errors.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.