Access-Control-Allow-Origin
is typically declared as an HTTP header to enable a browser to fetch content from remote domains. Is it possible for this to be declared via the HTML <meta>
tag?
Asked
Active
Viewed 1.3k times
3

ir-g
- 252
- 1
- 3
- 18
3 Answers
0
Try this:
Client Side
<meta http-equiv="Access-Control-Allow-Origin" content="*" />
Server Side
Remember that you must include the corresponding header.
PHP Example:
header('Access-Control-Allow-Origin: *');
You MUST have the HTML tag AND the Server Header.

Antoine
- 1,393
- 4
- 20
- 26