Guest User

Untitled

a guest
Oct 20th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.14 KB | None | 0 0
  1. [Error] Origin http://localhost:4200 is not allowed by Access-Control-Allow-Origin.
  2. [Error] XMLHttpRequest cannot load http://192.168.0.16:9870/webhdfs/v1/user/myuser/myfile.csv?op=CREATE&user.name=myuser&createflag=&createparent=true&overwrite=false due to access control checks.
  3. [Error] Failed to load resource: Origin http://localhost:4200 is not allowed by Access-Control-Allow-Origin. (myfile.csv, line 0)
  4.  
  5. <property>
  6. <name>hadoop.http.filter.initializers</name>
  7. <value>org.apache.hadoop.security.HttpCrossOriginFilterInitializer,org.apache.hadoop.http.lib.StaticUserWebFilter</value>
  8. <description>A comma separated list of class names. Each class in the list
  9. must extend org.apache.hadoop.http.FilterInitializer. The corresponding
  10. Filter will be initialized. Then, the Filter will be applied to all user
  11. facing jsp and servlet web pages. The ordering of the list defines the
  12. ordering of the filters.</description>
  13. </property>
  14.  
  15.  
  16.  
  17. <!-- HTTP CORS support -->
  18. <property>
  19. <description>Enable/disable the cross-origin (CORS) filter.</description>
  20. <name>hadoop.http.cross-origin.enabled</name>
  21. <value>true</value>
  22. </property>
  23.  
  24. <property>
  25. <description>Comma separated list of origins that are allowed for web
  26. services needing cross-origin (CORS) support. Wildcards (*) and patterns
  27. allowed</description>
  28. <name>hadoop.http.cross-origin.allowed-origins</name>
  29. <value>*</value>
  30. </property>
  31.  
  32. <property>
  33. <description>Comma separated list of methods that are allowed for web
  34. services needing cross-origin (CORS) support.</description>
  35. <name>hadoop.http.cross-origin.allowed-methods</name>
  36. <value>GET,PUT,POST,HEAD</value>
  37. </property>
  38.  
  39. <property>
  40. <description>Comma separated list of headers that are allowed for web
  41. services needing cross-origin (CORS) support.</description>
  42. <name>hadoop.http.cross-origin.allowed-headers</name>
  43. <value>X-Requested-With,Content-Type,Accept,Origin</value>
  44. </property>
  45.  
  46. <property>
  47. <description>The number of seconds a pre-flighted request can be cached
  48. for web services needing cross-origin (CORS) support.</description>
  49. <name>hadoop.http.cross-origin.max-age</name>
  50. <value>1800</value>
  51. </property>
Add Comment
Please, Sign In to add comment