top of page
  • Writer's pictureTek Siong, Hock

Embed Odoo Page in third party website with IFrame

If you wish to embed your contact form, or any page created by portal framework, in the third party website, such as Wix, WordPress, etc, you would probably encountered an security permission error, due to CORS (Cross Origin Resource Sharing).

By default, nginx (proxy server) will blocked any attempt to access the Odoo page from the third party website.

  1. Some people suggest to enable cors='*' in your controller. Actually, you dont really need to do it.

  2. In the /etc/nginx/site-enabled/, add the following.



add_header Access-Control-Allow-Origin "";


you can add multiple add_header to allow for different website. I don't recommend you to use * to allow all, due to the security risk.

You can go to to enter the URL (eg, of your Odoo page to generate the IFrame code, which can be copy and paste to the third party website.

Example of the embedding Odoo page in the Wix.

320 views0 comments


bottom of page