How to enable Nginx CORS in ispconfig?

Discussion in 'Installation/Configuration' started by skysky, May 3, 2022.

  1. skysky

    skysky Member

    I want to add below to Nginx, should I add it via ISPconfig nginx directive for the domain vhost?
    add_header Access-Control-Allow-Origin "https://abc123.com";

    thanks
     
  2. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    You may add directive but make sure the module is available or compiled with your nginx.
     
  3. skysky

    skysky Member

    Last edited: May 6, 2022
  4. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    That is basically what I said above. You may want to try Ondrej Sury nginx package instead of Ubuntu package which may be compiled with it but do check first because I am not really sure about it.
     

Share This Page