Login
Register
Home
Wiki Knowledge Base
FreeDNS
Facebook
Linux Support
Control Web Panel
MENU
Home
Help
Search
Login
Register
Control Web Panel
»
WebPanel
»
CentOS 7 Problems
»
How to add Cors for apache & nginx without error?
« previous
next »
Print
Pages: [
1
]
Author
Topic: How to add Cors for apache & nginx without error? (Read 3748 times)
0 Members and 1 Guest are viewing this topic.
mrr-r
Newbie
Posts: 16
How to add Cors for apache & nginx without error?
«
on:
February 04, 2020, 09:21:39 AM »
hello,
How to add Cors for apache & nginx without error?
please help!
Logged
rcschaff
Sr. Member
Posts: 820
Jack of all Trades, Master of some.
Re: How to add Cors for apache & nginx without error?
«
Reply #1 on:
February 06, 2020, 02:26:45 AM »
Apache is easy:
https://enable-cors.org/server_apache.html
Nginx is a bit more painful. You have to set it in all locations as I am aware.
Check out this article. They recommend creating a file with the parameters, and including it in the top of each server block. On CWP, DO NOT name it .conf, or it will crash the server.
try cors.include or something like that.
Logged
Google Hangouts: rcschaff82@gmail.com
Print
Pages: [
1
]
« previous
next »
Control Web Panel
»
WebPanel
»
CentOS 7 Problems
»
How to add Cors for apache & nginx without error?