{"type":"rich","version":"1.0","provider_name":"phorkie","provider_url":"https:\/\/p.cweiske.de\/","title":"converse.js: HTTP file upload failed","author_name":"Christian Weiske","cache_age":86400,"width":900,"height":900,"html":"<!-- embedding all files of https:\/\/p.cweiske.de\/568 -->\n<link rel=\"stylesheet\" href=\"https:\/\/p.cweiske.de\/css\/embed.css\"\/>\n<div class=\"phork\" id=\"568\">\n    <div class=\"phork-file\">\n <div class=\"phork-content\">\n  \n<div class=\"document\">\n\n\n<blockquote>\n<p>Refused to connect to '<a class=\"reference external\" href=\"https:\/\/cweiske.de:5444\/asdf\/asdf\/6x6.png\">https:\/\/cweiske.de:5444\/asdf\/asdf\/6x6.png<\/a>' because it violates the following Content Security Policy directive: &quot;connect-src 'self' conversejs.org&quot;.<\/p>\n<p>uploadFile &#64; converse.min.js:47274<\/p>\n<\/blockquote>\n<p>This is a configuration problem on the server hosting conversejs. It needs to allow PUT to other servers in its CSP.<\/p>\n<\/div>\n\n <\/div>\n <div class=\"phork-meta\">\n  <a href=\"https:\/\/p.cweiske.de\/568\/rev-raw\/bea0e1a5be741b9fa566a51d8b10aebedc11bb36\/1-README.rst\" style=\"float: right\">view raw source<\/a>\n  <a href=\"https:\/\/p.cweiske.de\/568#1-README.rst\">1-README.rst<\/a>\n <\/div>\n<\/div>\n    <div class=\"phork-file\">\n <div class=\"phork-content\">\n  \n<div class=\"document\">\n\n\n<blockquote>\nFailed to load <a class=\"reference external\" href=\"https:\/\/cweiske.de:5444\/ab\/cd\/ganzhoch.jpg\">https:\/\/cweiske.de:5444\/ab\/cd\/ganzhoch.jpg<\/a>:\nResponse to preflight request doesn't pass access control check:\nNo 'Access-Control-Allow-Origin' header is present on the requested resource. Origin '<a class=\"reference external\" href=\"https:\/\/conversejs.org\">https:\/\/conversejs.org<\/a>' is therefore not allowed access.<\/blockquote>\n<p>Add <tt class=\"docutils literal\"><span class=\"pre\">&quot;Access-Control-Allow-Origin&quot;:<\/span> &quot;*&quot;<\/tt><\/p>\n<blockquote>\nFailed to load <a class=\"reference external\" href=\"https:\/\/cweiske.de:5444\/ab\/cd\/der_hufnagel.jpg\">https:\/\/cweiske.de:5444\/ab\/cd\/der_hufnagel.jpg<\/a>:\nMethod PUT is not allowed by Access-Control-Allow-Methods in preflight response.<\/blockquote>\n<p>Add <tt class=\"docutils literal\"><span class=\"pre\">&quot;Access-Control-Allow-Methods&quot;:<\/span> &quot;PUT&quot;<\/tt><\/p>\n<blockquote>\nFailed to load <a class=\"reference external\" href=\"https:\/\/cweiske.de:5444\/ab\/cd\/fuchs.jpg\">https:\/\/cweiske.de:5444\/ab\/cd\/fuchs.jpg<\/a>:\nRequest header field Content-type is not allowed by Access-Control-Allow-Headers in preflight response.<\/blockquote>\n<p>Add <tt class=\"docutils literal\"><span class=\"pre\">&quot;Access-Control-Allow-Headers&quot;:<\/span> <span class=\"pre\">&quot;content-type&quot;<\/span><\/tt><\/p>\n<\/div>\n\n <\/div>\n <div class=\"phork-meta\">\n  <a href=\"https:\/\/p.cweiske.de\/568\/rev-raw\/bea0e1a5be741b9fa566a51d8b10aebedc11bb36\/2-ejabberd.rst\" style=\"float: right\">view raw source<\/a>\n  <a href=\"https:\/\/p.cweiske.de\/568#2-ejabberd.rst\">2-ejabberd.rst<\/a>\n <\/div>\n<\/div>\n    <div class=\"phork-file\">\n <div class=\"phork-content\">\n  <style type=\"text\/css\"><\/style><div class=\"code\"><table class=\"yml\"><tbody><tr class=\"li1\"><td class=\"ln\"><pre class=\"de1\">1\n2\n3\n4\n5\n6\n<\/pre><\/td><td class=\"de1\"><pre class=\"de1\">&#160; mod_http_upload:\r\n&#160; &#160; custom_headers:\r\n&#160; &#160; &#160; &quot;Access-Control-Allow-Origin&quot;: &quot;*&quot;\r\n&#160; &#160; &#160; &quot;Access-Control-Allow-Methods&quot;: &quot;PUT&quot;\r\n&#160; &#160; &#160; &quot;Access-Control-Allow-Headers&quot;: &quot;content-type&quot;\r\n&#160;<\/pre><\/td><\/tr><\/tbody><\/table><\/div>\n <\/div>\n <div class=\"phork-meta\">\n  <a href=\"https:\/\/p.cweiske.de\/568\/rev-raw\/bea0e1a5be741b9fa566a51d8b10aebedc11bb36\/2-ejabberd.yml\" style=\"float: right\">view raw source<\/a>\n  <a href=\"https:\/\/p.cweiske.de\/568#2-ejabberd.yml\">2-ejabberd.yml<\/a>\n <\/div>\n<\/div>\n<\/div>\n"}
